aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-25 10:55:35 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-25 10:55:35 +0000
commit80b8b39899a09c7516920cda5fd343b3086d4824 (patch)
treeaa9903fd6b64d19c5f640fa302272d85c92b204e /modutils
parent1399282b47bb218132a554cbe5b2b0ce4dcc055f (diff)
downloadbusybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.gz
busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.bz2
busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.zip
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>)
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index cba8dc4a0..8a6cc05dd 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -3632,7 +3632,7 @@ static int obj_gpl_license(struct obj_file *f, const char **license)
3632 int i; 3632 int i;
3633 if (license) 3633 if (license)
3634 *license = value+1; 3634 *license = value+1;
3635 for (i = 0; i < sizeof(gpl_licenses)/sizeof(gpl_licenses[0]); ++i) { 3635 for (i = 0; i < ARRAY_SIZE(gpl_licenses); ++i) {
3636 if (strcmp(value+1, gpl_licenses[i]) == 0) 3636 if (strcmp(value+1, gpl_licenses[i]) == 0)
3637 return 0; 3637 return 0;
3638 } 3638 }
@@ -3833,7 +3833,7 @@ add_ksymoops_symbols(struct obj_file *f, const char *filename,
3833#endif /* _NOT_SUPPORTED_ */ 3833#endif /* _NOT_SUPPORTED_ */
3834 /* tag the desired sections if size is non-zero */ 3834 /* tag the desired sections if size is non-zero */
3835 3835
3836 for (i = 0; i < sizeof(section_names)/sizeof(section_names[0]); ++i) { 3836 for (i = 0; i < ARRAY_SIZE(section_names); ++i) {
3837 sec = obj_find_section(f, section_names[i]); 3837 sec = obj_find_section(f, section_names[i]);
3838 if (sec && sec->header.sh_size) { 3838 if (sec && sec->header.sh_size) {
3839 l = sizeof(symprefix)+ /* "__insmod_" */ 3839 l = sizeof(symprefix)+ /* "__insmod_" */