Browse Source

Make masking constants unsigned, to avoid a gcc3-only compiler warning.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
bdd1a0f462
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      src/include/gpxe/ip.h

+ 6
- 6
src/include/gpxe/ip.h View File

12
 
12
 
13
 /* IP constants */
13
 /* IP constants */
14
 
14
 
15
-#define IP_VER		0x40
16
-#define IP_MASK_VER	0xf0
17
-#define IP_MASK_HLEN 	0x0f
18
-#define IP_MASK_OFFSET	0x1fff
19
-#define IP_MASK_DONOTFRAG	0x4000
20
-#define IP_MASK_MOREFRAGS	0x2000
15
+#define IP_VER			0x40U
16
+#define IP_MASK_VER		0xf0U
17
+#define IP_MASK_HLEN 		0x0fU
18
+#define IP_MASK_OFFSET		0x1fffU
19
+#define IP_MASK_DONOTFRAG	0x4000U
20
+#define IP_MASK_MOREFRAGS	0x2000U
21
 #define IP_PSHLEN 	12
21
 #define IP_PSHLEN 	12
22
 
22
 
23
 /* IP header defaults */
23
 /* IP header defaults */

Loading…
Cancel
Save