Source-Changes-HG archive

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

[src/trunk]: src/sbin/route don't compile tag functions if SMALL is defined. ...



details:   https://anonhg.NetBSD.org/src/rev/674dfa5cce2e
branches:  trunk
changeset: 766420:674dfa5cce2e
user:      kefren <kefren%NetBSD.org@localhost>
date:      Wed Jun 22 04:57:28 2011 +0000

description:
don't compile tag functions if SMALL is defined. Should fix the build

diffstat:

 sbin/route/route.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 2dfe6e6f6f2f -r 674dfa5cce2e sbin/route/route.c
--- a/sbin/route/route.c        Wed Jun 22 04:03:23 2011 +0000
+++ b/sbin/route/route.c        Wed Jun 22 04:57:28 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.129 2011/06/21 14:33:14 kefren Exp $       */
+/*     $NetBSD: route.c,v 1.130 2011/06/22 04:57:28 kefren Exp $       */
 
 /*
  * Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)route.c    8.6 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: route.c,v 1.129 2011/06/21 14:33:14 kefren Exp $");
+__RCSID("$NetBSD: route.c,v 1.130 2011/06/22 04:57:28 kefren Exp $");
 #endif
 #endif /* not lint */
 
@@ -1384,6 +1384,7 @@
        /*NOTREACHED*/
 }
 
+#ifndef SMALL
 static sup
 readtag(sup su, const char *s)
 {
@@ -1433,6 +1434,7 @@
        ms[where].shim.label = atoi(s);
        ms[where].s_addr = htonl(ms[where].s_addr);
 }
+#endif /* SMALL */
 
 int
 prefixlen(const char *s, struct sou *soup)



Home | Main Index | Thread Index | Old Index