ソースを参照

Include stdlib.h rather than malloc.h

tags/v0.9.3
Michael Brown 17年前
コミット
5ff23aa406
6個のファイルの変更7行の追加9行の削除
  1. 2
    1
      src/drivers/net/rtl8139.c
  2. 1
    1
      src/hci/mucurses/slk.c
  3. 1
    1
      src/hci/mucurses/windows.c
  4. 1
    1
      src/interface/pxe/pxe_preboot.c
  5. 2
    4
      src/net/ipv4.c
  6. 0
    1
      src/net/ipv6.c

+ 2
- 1
src/drivers/net/rtl8139.c ファイルの表示

@@ -66,11 +66,12 @@
66 66
 
67 67
 */
68 68
 
69
+#include <stdint.h>
70
+#include <stdlib.h>
69 71
 #include <io.h>
70 72
 #include <errno.h>
71 73
 #include <vsprintf.h>
72 74
 #include <timer.h>
73
-#include <malloc.h>
74 75
 #include <byteswap.h>
75 76
 #include <gpxe/pci.h>
76 77
 #include <gpxe/if_ether.h>

+ 1
- 1
src/hci/mucurses/slk.c ファイルの表示

@@ -1,6 +1,6 @@
1 1
 #include <curses.h>
2 2
 #include <stddef.h>
3
-#include <malloc.h>
3
+#include <stdlib.h>
4 4
 #include <string.h>
5 5
 #include <assert.h>
6 6
 #include "mucurses.h"

+ 1
- 1
src/hci/mucurses/windows.c ファイルの表示

@@ -1,6 +1,6 @@
1 1
 #include <curses.h>
2 2
 #include <stddef.h>
3
-#include <malloc.h>
3
+#include <stdlib.h>
4 4
 #include "mucurses.h"
5 5
 
6 6
 /** @file

+ 1
- 1
src/interface/pxe/pxe_preboot.c ファイルの表示

@@ -25,7 +25,7 @@
25 25
 
26 26
 #include <stdint.h>
27 27
 #include <string.h>
28
-#include <malloc.h>
28
+#include <stdlib.h>
29 29
 #include <gpxe/uaccess.h>
30 30
 #include <gpxe/dhcp.h>
31 31
 #include "pxe.h"

+ 2
- 4
src/net/ipv4.c ファイルの表示

@@ -1,8 +1,8 @@
1 1
 #include <string.h>
2 2
 #include <stdint.h>
3
+#include <stdlib.h>
3 4
 #include <errno.h>
4 5
 #include <byteswap.h>
5
-#include <malloc.h>
6 6
 #include <vsprintf.h>
7 7
 #include <gpxe/list.h>
8 8
 #include <gpxe/in.h>
@@ -199,9 +199,7 @@ static void ipv4_frag_expired ( struct retry_timer *timer __unused,
199 199
  * @v fragbug	Fragment buffer
200 200
  */
201 201
 static void free_fragbuf ( struct frag_buffer *fragbuf ) {
202
-	if ( fragbuf ) {
203
-		free_dma ( fragbuf, sizeof ( *fragbuf ) );
204
-	}
202
+	free ( fragbuf );
205 203
 }
206 204
 
207 205
 /**

+ 0
- 1
src/net/ipv6.c ファイルの表示

@@ -2,7 +2,6 @@
2 2
 #include <stdint.h>
3 3
 #include <string.h>
4 4
 #include <stdlib.h>
5
-#include <malloc.h>
6 5
 #include <vsprintf.h>
7 6
 #include <byteswap.h>
8 7
 #include <gpxe/in.h>

読み込み中…
キャンセル
保存