Source-Changes-HG archive

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

[src/trunk]: src/sys/net Fix build failed, if undef INET.



details:   https://anonhg.NetBSD.org/src/rev/2dfd9a27b0c9
branches:  trunk
changeset: 789020:2dfd9a27b0c9
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sun Aug 04 07:05:15 2013 +0000

description:
Fix build failed, if undef INET.

diffstat:

 sys/net/if_ecosubr.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r e6fb688e0116 -r 2dfd9a27b0c9 sys/net/if_ecosubr.c
--- a/sys/net/if_ecosubr.c      Sun Aug 04 05:42:47 2013 +0000
+++ b/sys/net/if_ecosubr.c      Sun Aug 04 07:05:15 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ecosubr.c,v 1.37 2013/06/29 21:06:58 rmind Exp $    */
+/*     $NetBSD: if_ecosubr.c,v 1.38 2013/08/04 07:05:15 kiyohara Exp $ */
 
 /*-
  * Copyright (c) 2001 Ben Harris
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ecosubr.c,v 1.37 2013/06/29 21:06:58 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ecosubr.c,v 1.38 2013/08/04 07:05:15 kiyohara Exp $");
 
 #include "opt_inet.h"
 
@@ -355,8 +355,9 @@
 {
        struct ifqueue *inq;
        struct eco_header ehdr, *eh;
-       int s, i;
+       int s;
 #ifdef INET
+       int i;
        struct arphdr *ah;
        struct eco_arp *ecah;
        struct mbuf *m1;
@@ -464,7 +465,9 @@
                printf("%s: unknown port stn %s port 0x%02x ctl 0x%02x\n",
                    ifp->if_xname, eco_sprintf(eh->eco_shost),
                    eh->eco_port, eh->eco_control);
+#ifdef INET
        drop:
+#endif
                m_freem(m);
                return;
        }



Home | Main Index | Thread Index | Old Index