Unix Technical Forum

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

This is a discussion on #ifdef YP collapse in libc/net/ethers.c within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Good morning - Found two #ifdef YP sections that became contiguous in rev 1.17; this diff collapses them into ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:49 AM
tbert
 
Posts: n/a
Default #ifdef YP collapse in libc/net/ethers.c

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],

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com