summaryrefslogtreecommitdiffstats
path: root/src/net/ipv4.c
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/ipv4.c
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/ipv4.c')
-rw-r--r--src/net/ipv4.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 8a1e8df3..065bf61c 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 );
}
/**