aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--insmod.c12
-rw-r--r--modutils/insmod.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/insmod.c b/insmod.c
index b3d5ac837..97c360be7 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.16 2000/07/14 01:51:25 kraai Exp $" 73#ident "$Id: insmod.c,v 1.17 2000/07/14 16:23:32 proski 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.16 2000/07/14 01:51:25 kraai Exp $" 279#ident "$Id: insmod.c,v 1.17 2000/07/14 16:23:32 proski Exp $"
280 280
281/* The relocatable object is manipulated using elfin types. */ 281/* The relocatable object is manipulated using elfin types. */
282 282
@@ -1134,7 +1134,7 @@ add_symbols_from(
1134static void add_kernel_symbols(struct obj_file *f) 1134static void add_kernel_symbols(struct obj_file *f)
1135{ 1135{
1136 struct external_module *m; 1136 struct external_module *m;
1137 size_t i, nused = 0; 1137 int i, nused = 0;
1138 1138
1139 /* Add module symbols first. */ 1139 /* Add module symbols first. */
1140 1140
@@ -1166,10 +1166,10 @@ static char *get_modinfo_value(struct obj_file *f, const char *key)
1166 v = strchr(p, '='); 1166 v = strchr(p, '=');
1167 n = strchr(p, '\0'); 1167 n = strchr(p, '\0');
1168 if (v) { 1168 if (v) {
1169 if (v - p == klen && strncmp(p, key, klen) == 0) 1169 if (p + klen == v && strncmp(p, key, klen) == 0)
1170 return v + 1; 1170 return v + 1;
1171 } else { 1171 } else {
1172 if (n - p == klen && strcmp(p, key) == 0) 1172 if (p + klen == n && strcmp(p, key) == 0)
1173 return n; 1173 return n;
1174 } 1174 }
1175 p = n + 1; 1175 p = n + 1;
@@ -1692,7 +1692,7 @@ new_process_module_arguments(struct obj_file *f, int argc, char **argv)
1692 loc += tgt_sizeof_char_p; 1692 loc += tgt_sizeof_char_p;
1693 } else { 1693 } else {
1694 /* Array of chars (in fact, matrix !) */ 1694 /* Array of chars (in fact, matrix !) */
1695 long charssize; /* size of each member */ 1695 unsigned long charssize; /* size of each member */
1696 1696
1697 /* Get the size of each member */ 1697 /* Get the size of each member */
1698 /* Probably we should do that outside the loop ? */ 1698 /* Probably we should do that outside the loop ? */
diff --git a/modutils/insmod.c b/modutils/insmod.c
index b3d5ac837..97c360be7 100644
--- a/modutils/insmod.c
+++ b/modutils/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.16 2000/07/14 01:51:25 kraai Exp $" 73#ident "$Id: insmod.c,v 1.17 2000/07/14 16:23:32 proski 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.16 2000/07/14 01:51:25 kraai Exp $" 279#ident "$Id: insmod.c,v 1.17 2000/07/14 16:23:32 proski Exp $"
280 280
281/* The relocatable object is manipulated using elfin types. */ 281/* The relocatable object is manipulated using elfin types. */
282 282
@@ -1134,7 +1134,7 @@ add_symbols_from(
1134static void add_kernel_symbols(struct obj_file *f) 1134static void add_kernel_symbols(struct obj_file *f)
1135{ 1135{
1136 struct external_module *m; 1136 struct external_module *m;
1137 size_t i, nused = 0; 1137 int i, nused = 0;
1138 1138
1139 /* Add module symbols first. */ 1139 /* Add module symbols first. */
1140 1140
@@ -1166,10 +1166,10 @@ static char *get_modinfo_value(struct obj_file *f, const char *key)
1166 v = strchr(p, '='); 1166 v = strchr(p, '=');
1167 n = strchr(p, '\0'); 1167 n = strchr(p, '\0');
1168 if (v) { 1168 if (v) {
1169 if (v - p == klen && strncmp(p, key, klen) == 0) 1169 if (p + klen == v && strncmp(p, key, klen) == 0)
1170 return v + 1; 1170 return v + 1;
1171 } else { 1171 } else {
1172 if (n - p == klen && strcmp(p, key) == 0) 1172 if (p + klen == n && strcmp(p, key) == 0)
1173 return n; 1173 return n;
1174 } 1174 }
1175 p = n + 1; 1175 p = n + 1;
@@ -1692,7 +1692,7 @@ new_process_module_arguments(struct obj_file *f, int argc, char **argv)
1692 loc += tgt_sizeof_char_p; 1692 loc += tgt_sizeof_char_p;
1693 } else { 1693 } else {
1694 /* Array of chars (in fact, matrix !) */ 1694 /* Array of chars (in fact, matrix !) */
1695 long charssize; /* size of each member */ 1695 unsigned long charssize; /* size of each member */
1696 1696
1697 /* Get the size of each member */ 1697 /* Get the size of each member */
1698 /* Probably we should do that outside the loop ? */ 1698 /* Probably we should do that outside the loop ? */