summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-14 14:21:32 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-14 14:21:32 +0200
commitcabf2bedace69096dc6b134e0add5792671a13c6 (patch)
treea326ffa41d30daa29e7989a9e83f9d2bf8b6b935
parent4bf95d6fff7bc3727fa4d4b916b2c6e4fcf87a83 (diff)
flowtop: Mark unused parameters with __maybe_unused
In order to avoid compiler warnings when compiling with -W/-Wunused-parameter, mark unused function parameters with __maybe_unused. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--flowtop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/flowtop.c b/flowtop.c
index 3e55079..884acd1 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -1015,7 +1015,7 @@ static void presenter(void)
}
static int collector_cb(enum nf_conntrack_msg_type type,
- struct nf_conntrack *ct, void *data)
+ struct nf_conntrack *ct, void *data __maybe_unused)
{
if (sigint)
return NFCT_CB_STOP;
@@ -1047,7 +1047,7 @@ static inline void collector_flush(struct nfct_handle *handle, uint8_t family)
nfct_query(handle, NFCT_Q_FLUSH, &family);
}
-static void *collector(void *null)
+static void *collector(void *null __maybe_unused)
{
int ret;
struct nfct_handle *handle;