aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/free.c2
-rw-r--r--procps/kill.c7
-rw-r--r--procps/ps.c2
-rw-r--r--procps/uptime.c2
4 files changed, 7 insertions, 6 deletions
diff --git a/procps/free.c b/procps/free.c
index a33fa9a59..f2e746e39 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -60,7 +60,7 @@ extern int free_main(int argc, char **argv)
60 printf("%6s%13ld%13ld%13ld\n", "Total:", info.totalram+info.totalswap, 60 printf("%6s%13ld%13ld%13ld\n", "Total:", info.totalram+info.totalswap,
61 (info.totalram-info.freeram)+(info.totalswap-info.freeswap), 61 (info.totalram-info.freeram)+(info.totalswap-info.freeswap),
62 info.freeram+info.freeswap); 62 info.freeram+info.freeswap);
63 return(TRUE); 63 return EXIT_SUCCESS;
64} 64}
65 65
66 66
diff --git a/procps/kill.c b/procps/kill.c
index 7ade8228c..dd5ca49fa 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -158,7 +158,7 @@ extern int kill_main(int argc, char **argv)
158 } 158 }
159 } 159 }
160 fprintf(stderr, "\n\n"); 160 fprintf(stderr, "\n\n");
161 exit(TRUE); 161 return EXIT_SUCCESS;
162 } 162 }
163 break; 163 break;
164 case '-': 164 case '-':
@@ -236,11 +236,12 @@ extern int kill_main(int argc, char **argv)
236 * upon exit, so we can save a byte or two */ 236 * upon exit, so we can save a byte or two */
237 argv++; 237 argv++;
238 } 238 }
239 exit (all_found); 239 if (all_found == FALSE)
240 return EXIT_FAILURE;
240 } 241 }
241#endif 242#endif
242 243
243 exit(TRUE); 244 return EXIT_SUCCESS;
244 245
245 246
246 end: 247 end:
diff --git a/procps/ps.c b/procps/ps.c
index df321612a..4998e15b1 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -183,7 +183,7 @@ extern int ps_main(int argc, char **argv)
183 fprintf(stdout, "\n"); 183 fprintf(stdout, "\n");
184 } 184 }
185 closedir(dir); 185 closedir(dir);
186 return(TRUE); 186 return EXIT_SUCCESS;
187} 187}
188 188
189 189
diff --git a/procps/uptime.c b/procps/uptime.c
index fe4e48cd6..159f24baa 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -70,5 +70,5 @@ extern int uptime_main(int argc, char **argv)
70 LOAD_INT(info.loads[1]), LOAD_FRAC(info.loads[1]), 70 LOAD_INT(info.loads[1]), LOAD_FRAC(info.loads[1]),
71 LOAD_INT(info.loads[2]), LOAD_FRAC(info.loads[2])); 71 LOAD_INT(info.loads[2]), LOAD_FRAC(info.loads[2]));
72 72
73 return(TRUE); 73 return EXIT_SUCCESS;
74} 74}