Source-Changes-HG archive

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

[src/netbsd-2-0]: src/dist/ipf/tools Pull up revision 1.3 (requested by jmc i...



details:   https://anonhg.NetBSD.org/src/rev/70d8ffa54f7b
branches:  netbsd-2-0
changeset: 560130:70d8ffa54f7b
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Mar 29 10:37:23 2004 +0000

description:
Pull up revision 1.3 (requested by jmc in ticket #5):
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 88a71501025d -r 70d8ffa54f7b dist/ipf/tools/ipmon.c
--- a/dist/ipf/tools/ipmon.c    Mon Mar 29 05:21:50 2004 +0000
+++ b/dist/ipf/tools/ipmon.c    Mon Mar 29 10:37:23 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.2.2.1 2004/03/29 10:37:23 tron 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