summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-30 16:31:21 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-30 16:34:01 +0200
commitc1aee513247783489c45507808b5a4589f6fb43a (patch)
tree407615b2cbe85e00fe9846ee2fef84881320123b
parent2e76c84b8e19ba02e82ce90370efe9feefd5a4b3 (diff)
netsniff-ng: Add __maybe_unused attribute to timer functions
The two functions timer_elapsed() and timer_next_dump() both take an argument which they don't use. Annotate them appropriately using the __maybe_unused attribute. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--netsniff-ng.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index fe09c82..7070873 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -115,7 +115,7 @@ static void signal_handler(int number)
}
}
-static void timer_elapsed(int unused)
+static void timer_elapsed(int unused __maybe_unused)
{
int ret;
@@ -147,8 +147,7 @@ static void timer_purge(void)
setitimer(ITIMER_REAL, &itimer, NULL);
}
-
-static void timer_next_dump(int unused)
+static void timer_next_dump(int unused __maybe_unused)
{
set_itimer_interval_value(&itimer, interval, 0);
next_dump = true;