style fixes

last xcalloc replaced by xzalloc
This commit is contained in:
Denis Vlasenko
2006-12-26 10:42:51 +00:00
parent 5dd7ef0f37
commit bf0a201008
39 changed files with 114 additions and 118 deletions

View File

@@ -3719,7 +3719,7 @@ static void check_tainted_module(struct obj_file *f, char *m_name)
close(fd);
}
#else /* FEATURE_CHECK_TAINTED_MODULE */
#define check_tainted_module(x, y) do { } while(0);
#define check_tainted_module(x, y) do { } while (0);
#endif /* FEATURE_CHECK_TAINTED_MODULE */
#if ENABLE_FEATURE_INSMOD_KSYMOOPS_SYMBOLS

View File

@@ -82,7 +82,7 @@ int lsmod_main(int argc, char **argv)
module_names = deps = NULL;
bufsize = depsize = 0;
while(query_module(NULL, QM_MODULES, module_names, bufsize, &nmod)) {
while (query_module(NULL, QM_MODULES, module_names, bufsize, &nmod)) {
if (errno != ENOSPC) bb_perror_msg_and_die("QM_MODULES");
module_names = xmalloc(bufsize = nmod);
}