diff options
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/insmod.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index f6575c97f..006468877 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -71,7 +71,7 @@ | |||
71 | #ifndef MODUTILS_MODULE_H | 71 | #ifndef MODUTILS_MODULE_H |
72 | #define MODUTILS_MODULE_H 1 | 72 | #define MODUTILS_MODULE_H 1 |
73 | 73 | ||
74 | #ident "$Id: insmod.c,v 1.10 2000/06/22 18:19:31 andersen Exp $" | 74 | #ident "$Id: insmod.c,v 1.11 2000/06/26 11:16:22 andersen Exp $" |
75 | 75 | ||
76 | /* This file contains the structures used by the 2.0 and 2.1 kernels. | 76 | /* This file contains the structures used by the 2.0 and 2.1 kernels. |
77 | We do not use the kernel headers directly because we do not wish | 77 | We do not use the kernel headers directly because we do not wish |
@@ -277,7 +277,7 @@ int delete_module(const char *); | |||
277 | #ifndef MODUTILS_OBJ_H | 277 | #ifndef MODUTILS_OBJ_H |
278 | #define MODUTILS_OBJ_H 1 | 278 | #define MODUTILS_OBJ_H 1 |
279 | 279 | ||
280 | #ident "$Id: insmod.c,v 1.10 2000/06/22 18:19:31 andersen Exp $" | 280 | #ident "$Id: insmod.c,v 1.11 2000/06/26 11:16:22 andersen Exp $" |
281 | 281 | ||
282 | /* The relocatable object is manipulated using elfin types. */ | 282 | /* The relocatable object is manipulated using elfin types. */ |
283 | 283 | ||
@@ -1189,8 +1189,10 @@ old_process_module_arguments(struct obj_file *f, int argc, char **argv) | |||
1189 | int *loc; | 1189 | int *loc; |
1190 | 1190 | ||
1191 | p = *argv; | 1191 | p = *argv; |
1192 | if ((q = strchr(p, '=')) == NULL) | 1192 | if ((q = strchr(p, '=')) == NULL) { |
1193 | argc--; | ||
1193 | continue; | 1194 | continue; |
1195 | } | ||
1194 | *q++ = '\0'; | 1196 | *q++ = '\0'; |
1195 | 1197 | ||
1196 | sym = obj_find_symbol(f, p); | 1198 | sym = obj_find_symbol(f, p); |
@@ -1550,8 +1552,10 @@ new_process_module_arguments(struct obj_file *f, int argc, char **argv) | |||
1550 | int min, max, n; | 1552 | int min, max, n; |
1551 | 1553 | ||
1552 | p = *argv; | 1554 | p = *argv; |
1553 | if ((q = strchr(p, '=')) == NULL) | 1555 | if ((q = strchr(p, '=')) == NULL) { |
1556 | argc--; | ||
1554 | continue; | 1557 | continue; |
1558 | } | ||
1555 | 1559 | ||
1556 | key = alloca(q - p + 6); | 1560 | key = alloca(q - p + 6); |
1557 | memcpy(key, "parm_", 5); | 1561 | memcpy(key, "parm_", 5); |