aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-12 00:32:05 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-12 00:32:05 +0000
commite91ac05530803390f7aa5ca646d90ae26c48aa52 (patch)
tree7a912fc65ff43bdb09078d75bfc02ad8f5380b47 /procps
parent13adb67bb086c45d7191966ca5fa3bff1de2dd74 (diff)
downloadbusybox-w32-e91ac05530803390f7aa5ca646d90ae26c48aa52.tar.gz
busybox-w32-e91ac05530803390f7aa5ca646d90ae26c48aa52.tar.bz2
busybox-w32-e91ac05530803390f7aa5ca646d90ae26c48aa52.zip
style fixes. No code changes
git-svn-id: svn://busybox.net/trunk/busybox@18409 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'procps')
-rw-r--r--procps/sysctl.c8
-rw-r--r--procps/uptime.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/procps/sysctl.c b/procps/sysctl.c
index 7c72ac933..2c3fda5fe 100644
--- a/procps/sysctl.c
+++ b/procps/sysctl.c
@@ -301,14 +301,16 @@ int sysctl_display_all(const char *path, int output, int show_table)
301 char *tmpdir; 301 char *tmpdir;
302 struct stat ts; 302 struct stat ts;
303 303
304 if (!(dp = opendir(path))) { 304 dp = opendir(path);
305 if (!dp) {
305 retval = -1; 306 retval = -1;
306 } else { 307 } else {
307 while ((de = readdir(dp)) != NULL) { 308 while ((de = readdir(dp)) != NULL) {
308 tmpdir = concat_subpath_file(path, de->d_name); 309 tmpdir = concat_subpath_file(path, de->d_name);
309 if(tmpdir == NULL) 310 if (tmpdir == NULL)
310 continue; 311 continue;
311 if ((retval2 = stat(tmpdir, &ts)) != 0) 312 retval2 = stat(tmpdir, &ts);
313 if (retval2 != 0)
312 bb_perror_msg(tmpdir); 314 bb_perror_msg(tmpdir);
313 else { 315 else {
314 if (S_ISDIR(ts.st_mode)) { 316 if (S_ISDIR(ts.st_mode)) {
diff --git a/procps/uptime.c b/procps/uptime.c
index 3573ffe73..c2b5d3966 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -46,7 +46,7 @@ int uptime_main(int argc, char **argv)
46 upminutes = (int) info.uptime / 60; 46 upminutes = (int) info.uptime / 60;
47 uphours = (upminutes / 60) % 24; 47 uphours = (upminutes / 60) % 24;
48 upminutes %= 60; 48 upminutes %= 60;
49 if(uphours) 49 if (uphours)
50 printf("%2d:%02d, ", uphours, upminutes); 50 printf("%2d:%02d, ", uphours, upminutes);
51 else 51 else
52 printf("%d min, ", upminutes); 52 printf("%d min, ", upminutes);