diff options
author | Roy Marples <roy@marples.name> | 2008-03-19 17:11:50 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-19 17:11:50 +0000 |
commit | d9ec62b22a8ccfebda4af34d8319b33a8a5e3bbb (patch) | |
tree | 1ee06a122011bd5347ed1dac292e1408178cceb0 /src/librc/librc.c | |
parent | 089caec283e1e1b39767abf9cb355f47ee6daca6 (diff) |
Add rc-service and update all softlevel refs to runlevel.
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r-- | src/librc/librc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c index f2b7758d..8ce9469d 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -37,7 +37,7 @@ const char librc_copyright[] = "Copyright (c) 2007-2008 Roy Marples"; #endif #include <signal.h> -#define SOFTLEVEL RC_SVCDIR "/softlevel" +#define RC_RUNLEVEL RC_SVCDIR "/softlevel" #ifndef S_IXUGO # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) @@ -268,7 +268,7 @@ char *rc_runlevel_get(void) FILE *fp; char *runlevel = NULL; - if ((fp = fopen(SOFTLEVEL, "r"))) { + if ((fp = fopen(RC_RUNLEVEL, "r"))) { runlevel = xmalloc(sizeof(char) * PATH_MAX); if (fgets(runlevel, PATH_MAX, fp)) { int i = strlen(runlevel) - 1; @@ -290,7 +290,7 @@ librc_hidden_def(rc_runlevel_get) bool rc_runlevel_set(const char *runlevel) { - FILE *fp = fopen(SOFTLEVEL, "w"); + FILE *fp = fopen(RC_RUNLEVEL, "w"); if (! fp) return false; |