2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-05 11:05:07 +00:00

Include stdlib.h rather than malloc.h

This commit is contained in:
Michael Brown 2007-01-18 20:06:03 +00:00
parent d12770e254
commit 5ff23aa406
6 changed files with 7 additions and 9 deletions

View File

@ -66,11 +66,12 @@
*/
#include <stdint.h>
#include <stdlib.h>
#include <io.h>
#include <errno.h>
#include <vsprintf.h>
#include <timer.h>
#include <malloc.h>
#include <byteswap.h>
#include <gpxe/pci.h>
#include <gpxe/if_ether.h>

View File

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

View File

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

View File

@ -25,7 +25,7 @@
#include <stdint.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <gpxe/uaccess.h>
#include <gpxe/dhcp.h>
#include "pxe.h"

View File

@ -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 );
}
/**

View File

@ -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>