summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-10-13 21:47:29 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-10-13 21:47:29 +0000
commit7b93cedcd49ad4c32eef553bf37a3fef6cd514e6 (patch)
tree3cafa72bd73f9025d43ce3d25804db317e184f16
parent154c99ce3e2622f095b249b1f793d5a3f141b40b (diff)
downloadrtems-7b93cedcd49ad4c32eef553bf37a3fef6cd514e6.tar.bz2
2002-10-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* net/if_ethersubr.c: Add comments to #endif NETATALK to stop gcc from complaining.
-rw-r--r--cpukit/libnetworking/ChangeLog5
-rw-r--r--cpukit/libnetworking/net/if_ethersubr.c12
2 files changed, 11 insertions, 6 deletions
diff --git a/cpukit/libnetworking/ChangeLog b/cpukit/libnetworking/ChangeLog
index b1e6047bbb..2fd9687e33 100644
--- a/cpukit/libnetworking/ChangeLog
+++ b/cpukit/libnetworking/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * net/if_ethersubr.c: Add comments to #endif NETATALK to stop
+ gcc from complaining.
+
2002-10-07 Eric Norum <eric.norum@usask.ca>
* netinet/tcp_var.h: Corrected typo in ARM alignment patch which
diff --git a/cpukit/libnetworking/net/if_ethersubr.c b/cpukit/libnetworking/net/if_ethersubr.c
index 2a6446ebb6..1c68ef74e0 100644
--- a/cpukit/libnetworking/net/if_ethersubr.c
+++ b/cpukit/libnetworking/net/if_ethersubr.c
@@ -99,7 +99,7 @@ extern struct ifqueue pkintrq;
extern u_char at_org_code[ 3 ];
extern u_char aarp_org_code[ 3 ];
-#endif NETATALK
+#endif /* NETATALK */
u_char etherbroadcastaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
#define senderr(e) { error = (e); goto bad;}
@@ -134,7 +134,7 @@ ether_output(ifp, m0, dst, rt0)
struct arpcom *ac = (struct arpcom *)ifp;
#ifdef NETATALK
struct at_ifaddr *aa;
-#endif NETATALK
+#endif /* NETATALK */
if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
senderr(ENETDOWN);
@@ -228,7 +228,7 @@ ether_output(ifp, m0, dst, rt0)
#ifdef NETATALKDEBUG
extern char *prsockaddr(struct sockaddr *);
printf("aarpresolv: failed for %s\n", prsockaddr(dst));
-#endif NETATALKDEBUG
+#endif /* NETATALKDEBUG */
return (0);
}
@@ -258,7 +258,7 @@ ether_output(ifp, m0, dst, rt0)
type = htons(ETHERTYPE_AT);
}
break;
-#endif NETATALK
+#endif /* NETATALK */
#ifdef NS
case AF_NS:
switch(ns_nettype){
@@ -528,7 +528,7 @@ ether_input(ifp, eh, m)
/* probably this should be done with a NETISR as well */
aarpinput((struct arpcom *)ifp, m); /* XXX */
return;
-#endif NETATALK
+#endif /* NETATALK */
default:
#ifdef NS
checksum = mtod(m, ushort *);
@@ -578,7 +578,7 @@ ether_input(ifp, eh, m)
goto dropanyway;
}
break;
-#endif NETATALK
+#endif /* NETATALK */
#ifdef ISO
case LLC_ISO_LSAP:
switch (l->llc_control) {