diff options
| author | Michael Brown | 2007-01-18 21:06:03 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-18 21:06:03 +0100 |
| commit | 5ff23aa406276c0932e7be760c31971dd1274d3f (patch) | |
| tree | a0b2c8e00311176208ec2ed0555579607084ac0c /src/net | |
| parent | console.h is no longer needed for debugging (diff) | |
| download | ipxe-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.c | 6 | ||||
| -rw-r--r-- | src/net/ipv6.c | 1 |
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> |
