aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-12-02 15:44:35 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-12-02 15:44:35 -0600
commitf5cf1136e70502ee530f20f0434f312611b12b51 (patch)
tree63ac1fda3d1f9822a05656e5088cbcb14d5ae62c /src/rc
parenta4038e11712d4c3f87f541f90be0b88f2903b82d (diff)
Use systype variable for rc_sys call
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/rc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index d96aa45f..8f69333c 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -752,6 +752,7 @@ main(int argc, char **argv)
{
const char *bootlevel = NULL;
char *newlevel = NULL;
+ const char *systype = NULL;
static RC_STRINGLIST *hotplugged_services;
static RC_STRINGLIST *stop_services;
static RC_STRINGLIST *start_services;
@@ -845,9 +846,9 @@ main(int argc, char **argv)
eerrorx("%s: %s", applet, strerror(errno));
/* NOTREACHED */
case 'S':
- bootlevel = rc_sys();
- if (bootlevel)
- printf("%s\n", bootlevel);
+ systype = rc_sys();
+ if (systype)
+ printf("%s\n", systype);
exit(EXIT_SUCCESS);
/* NOTREACHED */
case_RC_COMMON_GETOPT