From c674026f9e5cf9538101ebc5c19d4da973731ad1 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 31 Jul 2007 16:05:56 +0000 Subject: All our binaries are now mulicalls into rc, which makes our on disk size a lot smaller. --- src/rc-status.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/rc-status.c') diff --git a/src/rc-status.c b/src/rc-status.c index 7c99df7e..999026e7 100644 --- a/src/rc-status.c +++ b/src/rc-status.c @@ -5,19 +5,20 @@ Released under the GPLv2 */ -#define APPLET "rc-status" - #include #include #include #include #include +#include "builtins.h" #include "einfo.h" #include "rc.h" #include "rc-misc.h" #include "strlist.h" +#define APPLET "rc-status" + static void print_level (char *level) { printf ("Runlevel: %s%s%s\n", @@ -55,7 +56,7 @@ static void print_service (char *service) #include "_usage.h" #define getoptstring "alsu" getoptstring_COMMON -const struct option longopts[] = { +static const struct option longopts[] = { {"all", 0, NULL, 'a'}, {"list", 0, NULL, 'l'}, {"servicelist", 0, NULL, 's'}, @@ -65,7 +66,7 @@ const struct option longopts[] = { }; #include "_usage.c" -int main (int argc, char **argv) +int rc_status (int argc, char **argv) { char **levels = NULL; char **services = NULL; -- cgit v1.2.3