Source-Changes-HG archive

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

[src/trunk]: src/sys/net delint to c89; use #define instead of static const i...



details:   https://anonhg.NetBSD.org/src/rev/afe0e11c8620
branches:  trunk
changeset: 509563:afe0e11c8620
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon May 07 10:15:46 2001 +0000

description:
delint to c89; use #define instead of static const int for an array size

diffstat:

 sys/net/if_strip.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e769abe445a8 -r afe0e11c8620 sys/net/if_strip.c
--- a/sys/net/if_strip.c        Mon May 07 10:14:43 2001 +0000
+++ b/sys/net/if_strip.c        Mon May 07 10:15:46 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_strip.c,v 1.37 2001/04/13 23:30:17 thorpej Exp $    */
+/*     $NetBSD: if_strip.c,v 1.38 2001/05/07 10:15:46 lukem Exp $      */
 /*     from: NetBSD: if_sl.c,v 1.38 1996/02/13 22:00:23 christos Exp $ */
 
 /*
@@ -1953,7 +1953,7 @@
        char *msg;
        struct strip_softc *sc;
 {
-       static const int MAX_RecErr = 80;
+#define MAX_RecErr     80
        u_char *ptr = sc->sc_pktstart;
        u_char *end = sc->sc_mp;
        u_char pkt_text[MAX_RecErr], *p = pkt_text;



Home | Main Index | Thread Index | Old Index