diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:13 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:13 +0200 |
commit | 162484b83c392eeef33de2eb8111fcbe7f1e1e14 (patch) | |
tree | d803c4357400b05ff89cb5e25920cd359d0baa94 /net | |
parent | 13a0908f07be07b58df8f312acf92a58047383a6 (diff) | |
download | barebox-162484b83c392eeef33de2eb8111fcbe7f1e1e14.tar.gz barebox-162484b83c392eeef33de2eb8111fcbe7f1e1e14.tar.xz |
svn_rev_003
remove all #if 0 and #if 1
Diffstat (limited to 'net')
-rw-r--r-- | net/bootp.c | 19 | ||||
-rw-r--r-- | net/net.c | 3 |
2 files changed, 0 insertions, 22 deletions
diff --git a/net/bootp.c b/net/bootp.c index 1de9a8f2c6..6aef0d4f92 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -8,10 +8,6 @@ * Copyright 2000-2004 Wolfgang Denk, wd@denx.de */ -#if 0 -#define DEBUG 1 /* general debug */ -#define DEBUG_BOOTP_EXT 1 /* Debug received vendor fields */ -#endif #ifdef DEBUG_BOOTP_EXT #define debug_ext(fmt,args...) printf (fmt ,##args) @@ -60,21 +56,6 @@ IPaddr_t NetDHCPServerIP = 0; static void DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len); /* For Debug */ -#if 0 -static char *dhcpmsg2str(int type) -{ - switch (type) { - case 1: return "DHCPDISCOVER"; break; - case 2: return "DHCPOFFER"; break; - case 3: return "DHCPREQUEST"; break; - case 4: return "DHCPDECLINE"; break; - case 5: return "DHCPACK"; break; - case 6: return "DHCPNACK"; break; - case 7: return "DHCPRELEASE"; break; - default: return "UNKNOWN/INVALID MSG TYPE"; break; - } -} -#endif #if (CONFIG_BOOTP_MASK & CONFIG_BOOTP_VENDOREX) extern u8 *dhcp_vendorex_prep (u8 *e); /*rtn new e after add own opts. */ @@ -101,9 +101,6 @@ DECLARE_GLOBAL_DATA_PTR; # define ARP_TIMEOUT_COUNT (CONFIG_NET_RETRY_COUNT) #endif -#if 0 -#define ET_DEBUG -#endif /** BOOTP EXTENTIONS **/ |