aboutsummaryrefslogtreecommitdiff
path: root/modutils/lsmod.c
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-07 19:56:48 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-07 19:56:48 +0000
commitb529ac16d7308cb6e852b286b42ebe971a32cd3f (patch)
treea55822621d54bd82c54e272fa986e45698fea0f1 /modutils/lsmod.c
parentad3527fc1543422f053975ac4f37365a8585d7c5 (diff)
downloadbusybox-w32-b529ac16d7308cb6e852b286b42ebe971a32cd3f.tar.gz
busybox-w32-b529ac16d7308cb6e852b286b42ebe971a32cd3f.tar.bz2
busybox-w32-b529ac16d7308cb6e852b286b42ebe971a32cd3f.zip
Changed names of functions in utility.c and all affected files, to make
compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils/lsmod.c')
-rw-r--r--modutils/lsmod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 6fe505bf6..f957d2d00 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -83,7 +83,7 @@ extern int lsmod_main(int argc, char **argv)
83 module_names = xmalloc(bufsize = 256); 83 module_names = xmalloc(bufsize = 256);
84 deps = xmalloc(bufsize); 84 deps = xmalloc(bufsize);
85 if (query_module(NULL, QM_MODULES, module_names, bufsize, &nmod)) { 85 if (query_module(NULL, QM_MODULES, module_names, bufsize, &nmod)) {
86 fatalError("QM_MODULES: %s\n", strerror(errno)); 86 error_msg_and_die("QM_MODULES: %s\n", strerror(errno));
87 } 87 }
88 88
89 printf("Module Size Used by\n"); 89 printf("Module Size Used by\n");
@@ -94,7 +94,7 @@ extern int lsmod_main(int argc, char **argv)
94 continue; 94 continue;
95 } 95 }
96 /* else choke */ 96 /* else choke */
97 fatalError("module %s: QM_INFO: %s\n", mn, strerror(errno)); 97 error_msg_and_die("module %s: QM_INFO: %s\n", mn, strerror(errno));
98 } 98 }
99 while (query_module(mn, QM_REFS, deps, bufsize, &count)) { 99 while (query_module(mn, QM_REFS, deps, bufsize, &count)) {
100 if (errno == ENOENT) { 100 if (errno == ENOENT) {
@@ -102,7 +102,7 @@ extern int lsmod_main(int argc, char **argv)
102 continue; 102 continue;
103 } 103 }
104 if (errno != ENOSPC) { 104 if (errno != ENOSPC) {
105 fatalError("module %s: QM_REFS: %s", mn, strerror(errno)); 105 error_msg_and_die("module %s: QM_REFS: %s", mn, strerror(errno));
106 } 106 }
107 deps = xrealloc(deps, bufsize = count); 107 deps = xrealloc(deps, bufsize = count);
108 } 108 }
@@ -153,7 +153,7 @@ extern int lsmod_main(int argc, char **argv)
153 close(fd); 153 close(fd);
154 return 0; 154 return 0;
155 } 155 }
156 fatalError("/proc/modules: %s\n", strerror(errno)); 156 error_msg_and_die("/proc/modules: %s\n", strerror(errno));
157 return 1; 157 return 1;
158} 158}
159 159