summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 00:42:46 +0100
committerMichael Brown2006-12-20 00:42:46 +0100
commita646e38f03921d9b91366efa57826c94f0893299 (patch)
treebc7bbe6c3d31584b075c4ea3f3f057ce1b153a21
parentExplicitly print out-of-memory message to avoid tricking the user into (diff)
downloadipxe-a646e38f03921d9b91366efa57826c94f0893299.tar.gz
ipxe-a646e38f03921d9b91366efa57826c94f0893299.tar.xz
ipxe-a646e38f03921d9b91366efa57826c94f0893299.zip
Use stdlib.h for malloc() instead of malloc.h.
-rw-r--r--src/crypto/chap.c1
-rw-r--r--src/drivers/bus/pci.c2
-rw-r--r--src/hci/readline.c2
-rw-r--r--src/net/dhcpopts.c2
-rw-r--r--src/net/netdevice.c2
5 files changed, 4 insertions, 5 deletions
diff --git a/src/crypto/chap.c b/src/crypto/chap.c
index 6064a30a6..6bebaca5a 100644
--- a/src/crypto/chap.c
+++ b/src/crypto/chap.c
@@ -21,7 +21,6 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
-#include <malloc.h>
#include <gpxe/crypto.h>
#include <gpxe/chap.h>
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c
index 222f3eeab..2406b1307 100644
--- a/src/drivers/bus/pci.c
+++ b/src/drivers/bus/pci.c
@@ -20,9 +20,9 @@
*/
#include <stdint.h>
+#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include <malloc.h>
#include <gpxe/tables.h>
#include <gpxe/device.h>
#include <gpxe/pci.h>
diff --git a/src/hci/readline.c b/src/hci/readline.c
index a8cc455c3..14dbeafef 100644
--- a/src/hci/readline.c
+++ b/src/hci/readline.c
@@ -17,7 +17,7 @@
*/
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <console.h>
#include <gpxe/editstring.h>
#include <readline/readline.h>
diff --git a/src/net/dhcpopts.c b/src/net/dhcpopts.c
index e847c81d8..3013b669b 100644
--- a/src/net/dhcpopts.c
+++ b/src/net/dhcpopts.c
@@ -17,10 +17,10 @@
*/
#include <stdint.h>
+#include <stdlib.h>
#include <byteswap.h>
#include <errno.h>
#include <string.h>
-#include <malloc.h>
#include <assert.h>
#include <vsprintf.h>
#include <gpxe/list.h>
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index 634977f7a..3f8e54bb1 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -17,10 +17,10 @@
*/
#include <stdint.h>
+#include <stdlib.h>
#include <byteswap.h>
#include <string.h>
#include <errno.h>
-#include <malloc.h>
#include <gpxe/if_ether.h>
#include <gpxe/pkbuff.h>
#include <gpxe/tables.h>