#ifdef YP collapse in libc/net/ethers.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

#ifdef YP collapse in libc/net/ethers.c

Bret S. Lambert-2
Good morning -

        Found two #ifdef YP sections that became contiguous in rev 1.17;
this diff collapses them into a single #ifdef.

- Bret


--- ethers.c.orig Fri Aug 25 10:29:28 2006
+++ ethers.c Fri Aug 25 10:42:56 2006
@@ -100,9 +100,7 @@
 #ifdef YP
  char trybuf[sizeof("xx:xx:xx:xx:xx:xx")];
  int trylen;
-#endif
 
-#ifdef YP
  snprintf(trybuf, sizeof trybuf, "%x:%x:%x:%x:%x:%x",
     e->ether_addr_octet[0], e->ether_addr_octet[1],
     e->ether_addr_octet[2], e->ether_addr_octet[3],