--- src/usr.bin/systat/netcmds.c 2008/10/16 01:52:33 1.6 +++ src/usr.bin/systat/netcmds.c 2008/11/10 04:59:45 1.7 @@ -76,7 +76,7 @@ static int selecthost(struct in_addr *, static void showhosts(void); int -netcmd(char *cmd, char *args) +netcmd(const char *cmd, char *args) { if (prefix(cmd, "proto")) { @@ -151,7 +151,7 @@ changeitems(char *args, int onoff) hp = gethostbyname(args); if (hp == 0) { in.s_addr = inet_addr(args); - if (in.s_addr == -1) { + if ((int)in.s_addr == -1) { error("%s: unknown host or port", args); continue; } @@ -241,7 +241,7 @@ showports(void) for (p = ports; p < ports+nports; p++) { sp = getservbyport(p->port, - protos == TCP|UDP ? 0 : protos == TCP ? "tcp" : "udp"); + protos == (TCP|UDP) ? 0 : protos == TCP ? "tcp" : "udp"); if (!p->onoff) addch('!'); if (sp)