diff options
| author | hasso <hasso> | 2004-10-07 20:29:24 +0000 | 
|---|---|---|
| committer | hasso <hasso> | 2004-10-07 20:29:24 +0000 | 
| commit | fce954f8de1456dd62d26b52902a4a352ef17a93 (patch) | |
| tree | 3dee77fa141697940a9ff3203ea453e454e88d95 /zebra/zserv.c | |
| parent | 1cd80845dc5262ff7d3d38deb1921f0b8390f4df (diff) | |
Fix warnings. Didn't even look at files not compiled in Linux though.
Diffstat (limited to 'zebra/zserv.c')
| -rw-r--r-- | zebra/zserv.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/zebra/zserv.c b/zebra/zserv.c index 537b5429..5a0272d2 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -51,7 +51,7 @@ static void zebra_event (enum event event, int sock, struct zserv *client);  extern struct zebra_privs_t zserv_privs;  /* For logging of zebra meesages. */ -static char *zebra_command_str [] = +static const char *zebra_command_str [] =  {    "NULL",    "ZEBRA_INTERFACE_ADD", @@ -169,7 +169,8 @@ zebra_server_send_message (int sock, u_char *buf, unsigned long length)        else  	return -1;      } -  else if (nbytes != length) +  /* It's clear that nbytes is positive at this point. */ +  else if ((unsigned) nbytes != length)      zebra_server_enqueue (sock, buf, length, nbytes);    return 0; @@ -1449,7 +1450,7 @@ zebra_serv ()  /* zebra server UNIX domain socket. */  static void -zebra_serv_un (char *path) +zebra_serv_un (const char *path)  {    int ret;    int sock, len; | 
