Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/ipf/tools don't create unnecessary ifdefs that are due ...



details:   https://anonhg.NetBSD.org/src/rev/89090c2c06b1
branches:  trunk
changeset: 565088:89090c2c06b1
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 29 03:15:47 2004 +0000

description:
don't create unnecessary ifdefs that are due to character signness in
different platforms.

diffstat:

 dist/ipf/tools/ipmon.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (22 lines):

diff -r 8143d9e90823 -r 89090c2c06b1 dist/ipf/tools/ipmon.c
--- a/dist/ipf/tools/ipmon.c    Mon Mar 29 03:14:26 2004 +0000
+++ b/dist/ipf/tools/ipmon.c    Mon Mar 29 03:15:47 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipmon.c,v 1.2 2004/03/28 14:33:35 he Exp $     */
+/*     $NetBSD: ipmon.c,v 1.3 2004/03/29 03:15:47 christos Exp $       */
 
 /*
  * Copyright (C) 1993-2001, 2003 by Darren Reed.
@@ -1029,11 +1029,7 @@
        (void) sprintf(t, "%*.*s%u", len, len, ipf->fl_ifname, ipf->fl_unit);
        t += strlen(t);
 #endif
-#ifdef __sgi
-       if ((ipf->fl_group[0] == 255) && (ipf->fl_group[1] == '\0'))
-#else
-       if ((ipf->fl_group[0] == -1) && (ipf->fl_group[1] == '\0'))
-#endif
+       if ((ipf->fl_group[0] == (char)~0) && (ipf->fl_group[1] == '\0'))
                strcat(t, " @-1:");
        else if (ipf->fl_group[0] == '\0')
                (void) strcpy(t, " @0:");



Home | Main Index | Thread Index | Old Index