Преглед на файлове

Use stdlib.h for malloc() instead of malloc.h.

tags/v0.9.3
Michael Brown преди 17 години
родител
ревизия
a646e38f03
променени са 5 файла, в които са добавени 4 реда и са изтрити 5 реда
  1. 0
    1
      src/crypto/chap.c
  2. 1
    1
      src/drivers/bus/pci.c
  3. 1
    1
      src/hci/readline.c
  4. 1
    1
      src/net/dhcpopts.c
  5. 1
    1
      src/net/netdevice.c

+ 0
- 1
src/crypto/chap.c Целия файл

@@ -21,7 +21,6 @@
21 21
 #include <string.h>
22 22
 #include <errno.h>
23 23
 #include <assert.h>
24
-#include <malloc.h>
25 24
 #include <gpxe/crypto.h>
26 25
 #include <gpxe/chap.h>
27 26
 

+ 1
- 1
src/drivers/bus/pci.c Целия файл

@@ -20,9 +20,9 @@
20 20
  */
21 21
 
22 22
 #include <stdint.h>
23
+#include <stdlib.h>
23 24
 #include <string.h>
24 25
 #include <errno.h>
25
-#include <malloc.h>
26 26
 #include <gpxe/tables.h>
27 27
 #include <gpxe/device.h>
28 28
 #include <gpxe/pci.h>

+ 1
- 1
src/hci/readline.c Целия файл

@@ -17,7 +17,7 @@
17 17
  */
18 18
 
19 19
 #include <string.h>
20
-#include <malloc.h>
20
+#include <stdlib.h>
21 21
 #include <console.h>
22 22
 #include <gpxe/editstring.h>
23 23
 #include <readline/readline.h>

+ 1
- 1
src/net/dhcpopts.c Целия файл

@@ -17,10 +17,10 @@
17 17
  */
18 18
 
19 19
 #include <stdint.h>
20
+#include <stdlib.h>
20 21
 #include <byteswap.h>
21 22
 #include <errno.h>
22 23
 #include <string.h>
23
-#include <malloc.h>
24 24
 #include <assert.h>
25 25
 #include <vsprintf.h>
26 26
 #include <gpxe/list.h>

+ 1
- 1
src/net/netdevice.c Целия файл

@@ -17,10 +17,10 @@
17 17
  */
18 18
 
19 19
 #include <stdint.h>
20
+#include <stdlib.h>
20 21
 #include <byteswap.h>
21 22
 #include <string.h>
22 23
 #include <errno.h>
23
-#include <malloc.h>
24 24
 #include <gpxe/if_ether.h>
25 25
 #include <gpxe/pkbuff.h>
26 26
 #include <gpxe/tables.h>

Loading…
Отказ
Запис