Use defines for selecting commands instead of bitmask
[oweals/u-boot_mod.git] / u-boot / net / bootp.h
old mode 100755 (executable)
new mode 100644 (file)
index 0b31639..d9237c9
 #define __BOOTP_H__
 
 #ifndef __NET_H__
-#include       <net.h>
-#endif /* __NET_H__ */
+#include <net.h>
+#endif
 
 /**********************************************************************/
 
 /*
  *     BOOTP header.
  */
-#if (CONFIG_COMMANDS & CFG_CMD_DHCP)
+#if defined(CONFIG_CMD_DHCP)
 #define OPT_SIZE 312   /* Minimum DHCP Options size per RFC2131 - results in 576 byte pkt */
 #else
 #define OPT_SIZE 64