summaryrefslogtreecommitdiff
path: root/insmod.c
diff options
context:
space:
mode:
authorEric Andersen2000-07-19 17:35:54 +0000
committerEric Andersen2000-07-19 17:35:54 +0000
commitae6eae02dd85a196a4545376a50166aede8ce7c1 (patch)
treec3dbc22408e4323f916fb1f1171f7aa73fa2aecc /insmod.c
parent52d6fa3bb335fcfefc2b205e7ba509fc4b284793 (diff)
downloadbusybox-ae6eae02dd85a196a4545376a50166aede8ce7c1.zip
busybox-ae6eae02dd85a196a4545376a50166aede8ce7c1.tar.gz
Moved some code and add a coupld #defines to support use of dmalloc.
-Erik
Diffstat (limited to 'insmod.c')
-rw-r--r--insmod.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/insmod.c b/insmod.c
index 9daedf9..cd75e24 100644
--- a/insmod.c
+++ b/insmod.c
@@ -70,7 +70,7 @@
#ifndef MODUTILS_MODULE_H
#define MODUTILS_MODULE_H 1
-#ident "$Id: insmod.c,v 1.18 2000/07/16 20:57:15 kraai Exp $"
+#ident "$Id: insmod.c,v 1.19 2000/07/19 17:35:54 andersen Exp $"
/* This file contains the structures used by the 2.0 and 2.1 kernels.
We do not use the kernel headers directly because we do not wish
@@ -276,7 +276,7 @@ int delete_module(const char *);
#ifndef MODUTILS_OBJ_H
#define MODUTILS_OBJ_H 1
-#ident "$Id: insmod.c,v 1.18 2000/07/16 20:57:15 kraai Exp $"
+#ident "$Id: insmod.c,v 1.19 2000/07/19 17:35:54 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
@@ -563,16 +563,6 @@ static char m_fullName[BUFSIZ + 1] = "\0";
/*======================================================================*/
-void *xrealloc(void *old, size_t size)
-{
- void *ptr = realloc(old, size);
- if (!ptr) {
- perror("Out of memory");
- exit(1);
- }
- return ptr;
-}
-
static int findNamedModule(const char *fileName, struct stat *statbuf,
void *userDate)