diff options
author | jcid <devnull@localhost> | 2008-09-14 16:07:12 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-14 16:07:12 +0200 |
commit | 8a2b5a9e5b8aad195531603aedbbdd5a9eb98bfa (patch) | |
tree | 6053a7217a9c976c0d1e78bb57c4052ba8353e53 /dpid | |
parent | 4272ccda16b3d6b8695f01eb3c6ea544a97cbf54 (diff) |
- Made several cleanups according to compiler warnings with "-W -Wall".
Diffstat (limited to 'dpid')
-rw-r--r-- | dpid/dpid.c | 3 | ||||
-rw-r--r-- | dpid/main.c | 4 |
2 files changed, 4 insertions, 3 deletions
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); |