summaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorMichael Brown2007-01-18 21:06:03 +0100
committerMichael Brown2007-01-18 21:06:03 +0100
commit5ff23aa406276c0932e7be760c31971dd1274d3f (patch)
treea0b2c8e00311176208ec2ed0555579607084ac0c /src/net
parentconsole.h is no longer needed for debugging (diff)
downloadipxe-5ff23aa406276c0932e7be760c31971dd1274d3f.tar.gz
ipxe-5ff23aa406276c0932e7be760c31971dd1274d3f.tar.xz
ipxe-5ff23aa406276c0932e7be760c31971dd1274d3f.zip
Include stdlib.h rather than malloc.h
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ipv4.c6
-rw-r--r--src/net/ipv6.c1
2 files changed, 2 insertions, 5 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 8a1e8df3e..065bf61c4 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -1,8 +1,8 @@
#include <string.h>
#include <stdint.h>
+#include <stdlib.h>
#include <errno.h>
#include <byteswap.h>
-#include <malloc.h>
#include <vsprintf.h>
#include <gpxe/list.h>
#include <gpxe/in.h>
@@ -199,9 +199,7 @@ static void ipv4_frag_expired ( struct retry_timer *timer __unused,
* @v fragbug Fragment buffer
*/
static void free_fragbuf ( struct frag_buffer *fragbuf ) {
- if ( fragbuf ) {
- free_dma ( fragbuf, sizeof ( *fragbuf ) );
- }
+ free ( fragbuf );
}
/**
diff --git a/src/net/ipv6.c b/src/net/ipv6.c
index e38e314aa..26c43dd0b 100644
--- a/src/net/ipv6.c
+++ b/src/net/ipv6.c
@@ -2,7 +2,6 @@
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
-#include <malloc.h>
#include <vsprintf.h>
#include <byteswap.h>
#include <gpxe/in.h>