summaryrefslogtreecommitdiff
path: root/com32/include/com32.h
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-03-30 12:45:33 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-04-17 10:57:13 +0100
commitd73c19e488121790635c2ede1afc0a217b7e8b29 (patch)
tree02befa15eb2a6c70d15db4a26789c8b234a83050 /com32/include/com32.h
parent81eccba80e68d637197816d15659bd30425b5f13 (diff)
downloadsyslinux-d73c19e488121790635c2ede1afc0a217b7e8b29.tar.gz
core: Partial revert of commit 9333426b and unify lmalloc()
The reason behind commit 9333426b ("elflink: fix the global naming for lmalloc") seems to be that we need to avoid having two 'lmalloc' symbols, one in the core and one in the com32 library. Unfortunately, this commit introduced the following warning in multiple places, meminfo.c:47:2: warning: implicit declaration of function ‘lmalloc’ meminfo.c:47:9: warning: assignment makes pointer from integer without a cast meminfo.c:93:5: warning: implicit declaration of function ‘free’ meminfo.c:93:5: warning: incompatible implicit declaration of built-in function ‘free’ Consolidate the implementations of lmalloc() so that it's suitable for use both in the com32 library code and the core. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/include/com32.h')
-rw-r--r--com32/include/com32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/include/com32.h b/com32/include/com32.h
index f49f9eab..6b142082 100644
--- a/com32/include/com32.h
+++ b/com32/include/com32.h
@@ -120,7 +120,7 @@ extern const com32sys_t __com32_zero_regs;
/*
* Lowmem allocation functions
*/
-void *clmalloc(size_t);
+void *lmalloc(size_t);
void *lzalloc(size_t);
void lfree(void *);
char *lstrdup(const char *);