aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-05-25 13:05:58 +0200
committerStefan Sperling <ssperling@sysmocom.de>2018-05-25 13:06:41 +0200
commit4df2251f1b90358a4597be78500e726453b5df84 (patch)
treedc2da2bc041eec66c957b98cb87b3aa570370527
parent73b7fa61096c69c137bc3a1cbac0a83355cf8b5f (diff)
remove unused argument from pad_append_ctr() helper function
Change-Id: Iff5699be1dc306120cc1752b0a892e4fcbc5a8c0 Fixes: 97d3da2c591984b47839fd1d9a5cba24a7f05fa1 Related: OS#3245
-rw-r--r--src/vty/utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vty/utils.c b/src/vty/utils.c
index 4d37093a..0d663c6e 100644
--- a/src/vty/utils.c
+++ b/src/vty/utils.c
@@ -93,7 +93,7 @@ pad_append_str(char *s, const char *a, int minwidth)
}
static char *
-pad_append_ctr(char *s, uint64_t ctr, int minwidth, void *ctx)
+pad_append_ctr(char *s, uint64_t ctr, int minwidth)
{
s = talloc_asprintf_append(s, "%*" PRIu64, minwidth, ctr);
OSMO_ASSERT(s);
@@ -158,22 +158,22 @@ static int rate_ctr_handler_fmt(
s = pad_append_str(s, desc->name, minwidth);
break;
case 'c':
- s = pad_append_ctr(s, ctr->current, minwidth, vty);
+ s = pad_append_ctr(s, ctr->current, minwidth);
break;
case 'p':
- s = pad_append_ctr(s, ctr->previous, minwidth, vty);
+ s = pad_append_ctr(s, ctr->previous, minwidth);
break;
case 'S':
- s = pad_append_ctr(s, ctr->intv[RATE_CTR_INTV_SEC].rate, minwidth, vty);
+ s = pad_append_ctr(s, ctr->intv[RATE_CTR_INTV_SEC].rate, minwidth);
break;
case 'M':
- s = pad_append_ctr(s, ctr->intv[RATE_CTR_INTV_MIN].rate, minwidth, vty);
+ s = pad_append_ctr(s, ctr->intv[RATE_CTR_INTV_MIN].rate, minwidth);
break;
case 'H':
- s = pad_append_ctr(s, ctr->intv[RATE_CTR_INTV_HOUR].rate, minwidth, vty);
+ s = pad_append_ctr(s, ctr->intv[RATE_CTR_INTV_HOUR].rate, minwidth);
break;
case 'D':
- s = pad_append_ctr(s, ctr->intv[RATE_CTR_INTV_DAY].rate, minwidth, vty);
+ s = pad_append_ctr(s, ctr->intv[RATE_CTR_INTV_DAY].rate, minwidth);
break;
default:
break;