From d9ec62b22a8ccfebda4af34d8319b33a8a5e3bbb Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 19 Mar 2008 17:11:50 +0000 Subject: Add rc-service and update all softlevel refs to runlevel. --- src/librc/librc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/librc') 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 -#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; -- cgit v1.2.3