aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-26 15:26:14 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-26 15:26:14 +0100
commit1e1136025b2e6316f2cfaca76699a2d9de900aef (patch)
tree922a4ac451222a23c37616be38fbfbda9831cb0e
parent650a7011a8274dc5334ee8415bcaf77405c41200 (diff)
downloadbusybox-w32-1e1136025b2e6316f2cfaca76699a2d9de900aef.tar.gz
busybox-w32-1e1136025b2e6316f2cfaca76699a2d9de900aef.tar.bz2
busybox-w32-1e1136025b2e6316f2cfaca76699a2d9de900aef.zip
runlevel: -2 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/runlevel.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/miscutils/runlevel.c b/miscutils/runlevel.c
index 6e10d9cbb..83b5a77d4 100644
--- a/miscutils/runlevel.c
+++ b/miscutils/runlevel.c
@@ -11,17 +11,16 @@
11 * 11 *
12 * initially busyboxified by Bernhard Reutner-Fischer 12 * initially busyboxified by Bernhard Reutner-Fischer
13 */ 13 */
14
15#include <utmp.h>
16#include "libbb.h" 14#include "libbb.h"
15#include <utmp.h>
17 16
18int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 17int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
19int runlevel_main(int argc, char **argv) 18int runlevel_main(int argc UNUSED_PARAM, char **argv)
20{ 19{
21 struct utmp *ut; 20 struct utmp *ut;
22 char prev; 21 char prev;
23 22
24 if (argc > 1) utmpname(argv[1]); 23 if (argv[1]) utmpname(argv[1]);
25 24
26 setutent(); 25 setutent();
27 while ((ut = getutent()) != NULL) { 26 while ((ut = getutent()) != NULL) {