aboutsummaryrefslogtreecommitdiff
path: root/insmod.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-19 17:35:54 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-19 17:35:54 +0000
commit7db1af0361c86ecb85dd635eacf86904b24945cc (patch)
treec3dbc22408e4323f916fb1f1171f7aa73fa2aecc /insmod.c
parente6b213774cac20e1cd53daf0a7032434a2f42a1c (diff)
downloadbusybox-w32-7db1af0361c86ecb85dd635eacf86904b24945cc.tar.gz
busybox-w32-7db1af0361c86ecb85dd635eacf86904b24945cc.tar.bz2
busybox-w32-7db1af0361c86ecb85dd635eacf86904b24945cc.zip
Moved some code and add a coupld #defines to support use of dmalloc.
-Erik git-svn-id: svn://busybox.net/trunk/busybox@878 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 9daedf938..cd75e2416 100644
--- a/insmod.c
+++ b/insmod.c
@@ -70,7 +70,7 @@
70#ifndef MODUTILS_MODULE_H 70#ifndef MODUTILS_MODULE_H
71#define MODUTILS_MODULE_H 1 71#define MODUTILS_MODULE_H 1
72 72
73#ident "$Id: insmod.c,v 1.18 2000/07/16 20:57:15 kraai Exp $" 73#ident "$Id: insmod.c,v 1.19 2000/07/19 17:35:54 andersen Exp $"
74 74
75/* This file contains the structures used by the 2.0 and 2.1 kernels. 75/* This file contains the structures used by the 2.0 and 2.1 kernels.
76 We do not use the kernel headers directly because we do not wish 76 We do not use the kernel headers directly because we do not wish
@@ -276,7 +276,7 @@ int delete_module(const char *);
276#ifndef MODUTILS_OBJ_H 276#ifndef MODUTILS_OBJ_H
277#define MODUTILS_OBJ_H 1 277#define MODUTILS_OBJ_H 1
278 278
279#ident "$Id: insmod.c,v 1.18 2000/07/16 20:57:15 kraai Exp $" 279#ident "$Id: insmod.c,v 1.19 2000/07/19 17:35:54 andersen Exp $"
280 280
281/* The relocatable object is manipulated using elfin types. */ 281/* The relocatable object is manipulated using elfin types. */
282 282
@@ -563,16 +563,6 @@ static char m_fullName[BUFSIZ + 1] = "\0";
563 563
564/*======================================================================*/ 564/*======================================================================*/
565 565
566void *xrealloc(void *old, size_t size)
567{
568 void *ptr = realloc(old, size);
569 if (!ptr) {
570 perror("Out of memory");
571 exit(1);
572 }
573 return ptr;
574}
575
576 566
577static int findNamedModule(const char *fileName, struct stat *statbuf, 567static int findNamedModule(const char *fileName, struct stat *statbuf,
578 void *userDate) 568 void *userDate)