From 8a2b5a9e5b8aad195531603aedbbdd5a9eb98bfa Mon Sep 17 00:00:00 2001 From: jcid Date: Sun, 14 Sep 2008 16:07:12 +0200 Subject: - Made several cleanups according to compiler warnings with "-W -Wall". --- dpid/dpid.c | 3 ++- dpid/main.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'dpid') diff --git a/dpid/dpid.c b/dpid/dpid.c index 4f2acc2f..2bc4dd23 100644 --- a/dpid/dpid.c +++ b/dpid/dpid.c @@ -671,7 +671,8 @@ int init_all_dpi_sockets(struct dp *dpi_attr_list, char *sockdir) */ void dpi_sigchld(int sig) { - caught_sigchld = 1; + if (sig == SIGCHLD) + caught_sigchld = 1; } /*! Called by main loop when caught_sigchld == 1 */ diff --git a/dpid/main.c b/dpid/main.c index 065e7858..aad1af90 100644 --- a/dpid/main.c +++ b/dpid/main.c @@ -146,7 +146,7 @@ static char *get_request(int sock) * \Return * command code on success, -1 on failure */ -static int get_command(int sock, char *dpi_tag, struct dp *dpi_attr_list) +static int get_command(int sock, char *dpi_tag) { char *cmd, *d_cmd; int COMMAND; @@ -337,7 +337,7 @@ int main(void) int command; req = get_request(sock); - command = get_command(sock, req, dpi_attr_list); + command = get_command(sock, req); switch (command) { case BYE_CMD: stop_active_dpis(dpi_attr_list, numdpis); -- cgit v1.2.3