Explorar el Código

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

tags/v0.9.3
Michael Brown hace 17 años
padre
commit
bdd1a0f462
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6
    6
      src/include/gpxe/ip.h

+ 6
- 6
src/include/gpxe/ip.h Ver fichero

@@ -12,12 +12,12 @@
12 12
 
13 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 21
 #define IP_PSHLEN 	12
22 22
 
23 23
 /* IP header defaults */

Loading…
Cancelar
Guardar