aboutsummaryrefslogtreecommitdiff
path: root/src/rc-status.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-31 16:05:56 +0000
committerRoy Marples <roy@marples.name>2007-07-31 16:05:56 +0000
commitc674026f9e5cf9538101ebc5c19d4da973731ad1 (patch)
tree76c3dd7c0647054d6fff55d5104d1f0977c85c94 /src/rc-status.c
parent02fcdeede4d2a14c10a8efcf8edc212b9a085708 (diff)
All our binaries are now mulicalls into rc, which makes our on disk size
a lot smaller.
Diffstat (limited to 'src/rc-status.c')
-rw-r--r--src/rc-status.c9
1 files changed, 5 insertions, 4 deletions
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 <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#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;