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:
parent
d12770e254
commit
5ff23aa406
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <curses.h>
|
||||
#include <stddef.h>
|
||||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
#include "mucurses.h"
|
||||
|
||||
/** @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"
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user