Use defines for selecting commands instead of bitmask
[oweals/u-boot_mod.git] / u-boot / net / bootp.h
index 0b3163901e3fd7f2e26e6276cb3ead0ad7c3fb28..d9237c9a2b8c116a9eb6fd4fb1814cd1a2867a6a 100644 (file)
 #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