Browse Source

Include stdlib.h rather than malloc.h

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
5ff23aa406

+ 2
- 1
src/drivers/net/rtl8139.c View File

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

+ 1
- 1
src/hci/mucurses/slk.c View File

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

+ 1
- 1
src/hci/mucurses/windows.c View File

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

+ 1
- 1
src/interface/pxe/pxe_preboot.c View File

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

+ 2
- 4
src/net/ipv4.c View File

1
 #include <string.h>
1
 #include <string.h>
2
 #include <stdint.h>
2
 #include <stdint.h>
3
+#include <stdlib.h>
3
 #include <errno.h>
4
 #include <errno.h>
4
 #include <byteswap.h>
5
 #include <byteswap.h>
5
-#include <malloc.h>
6
 #include <vsprintf.h>
6
 #include <vsprintf.h>
7
 #include <gpxe/list.h>
7
 #include <gpxe/list.h>
8
 #include <gpxe/in.h>
8
 #include <gpxe/in.h>
199
  * @v fragbug	Fragment buffer
199
  * @v fragbug	Fragment buffer
200
  */
200
  */
201
 static void free_fragbuf ( struct frag_buffer *fragbuf ) {
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 View File

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

Loading…
Cancel
Save