summaryrefslogtreecommitdiff
path: root/dpid
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-02-09 21:53:56 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-02-09 21:53:56 +0100
commit201b0be0c0611e27c4fc4954d6f738a0150ee70f (patch)
tree4cdc96b5949d2e280ee33f06ff2649b3164c82d4 /dpid
parent269fc0ca3f4ede92a73dab0862cd7a5e3a6ed99d (diff)
suppress unused parameter warning
This solution was pointed out by corvid and Jorge.
Diffstat (limited to 'dpid')
-rw-r--r--dpid/dpid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dpid/dpid.c b/dpid/dpid.c
index b0ca8420..2337d5d6 100644
--- a/dpid/dpid.c
+++ b/dpid/dpid.c
@@ -100,11 +100,10 @@ void free_services_list(Dlist *s_list)
}
/*! Signal handler for SIGINT, SIGQUIT, and SIGTERM. Calls cleanup
- * \todo what is the most portable way to ignore the signo argument of
- * without generating a warning? Is "int signo __unused" gcc specific?
*/
-static void terminator()
+static void terminator(int sig)
{
+ (void) sig; /* suppress unused parameter warning */
cleanup();
_exit(0);
}