diff options
author | Roy Marples <roy@marples.name> | 2007-10-03 14:22:45 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-03 14:22:45 +0000 |
commit | 4b7efeafa6a8db4e137dc9e34fce20590cb447c2 (patch) | |
tree | c81c9c908080c777068c6912fe9f4fc2c6b7801d /src/librc.c | |
parent | 563c6f46c0439eeb3fcc90105264ae1043b7298f (diff) |
rc_service_option_set -> rc_service_value_set, rc_service_option_get -> rc_service_value_get
Diffstat (limited to 'src/librc.c')
-rw-r--r-- | src/librc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/librc.c b/src/librc.c index fd069abc..c93c1ee9 100644 --- a/src/librc.c +++ b/src/librc.c @@ -131,7 +131,7 @@ bool rc_runlevel_exists (const char *runlevel) } librc_hidden_def(rc_runlevel_exists) -/* Resolve a service name to it's full path */ + /* Resolve a service name to it's full path */ char *rc_service_resolve (const char *service) { char buffer[PATH_MAX]; @@ -441,7 +441,7 @@ rc_service_state_t rc_service_state (const char *service) } librc_hidden_def(rc_service_state) -char *rc_service_option_get (const char *service, const char *option) +char *rc_service_value_get (const char *service, const char *option) { FILE *fp; char buffer[RC_LINEBUFFER]; @@ -459,10 +459,10 @@ char *rc_service_option_get (const char *service, const char *option) return (value); } -librc_hidden_def(rc_service_option_get) +librc_hidden_def(rc_service_value_get) -bool rc_service_option_set (const char *service, const char *option, - const char *value) +bool rc_service_value_set (const char *service, const char *option, + const char *value) { FILE *fp; char *path = rc_strcatpaths (RC_SVCDIR, "options", service, (char *) NULL); @@ -488,7 +488,7 @@ bool rc_service_option_set (const char *service, const char *option, free (file); return (retval); } -librc_hidden_def(rc_service_option_set) +librc_hidden_def(rc_service_value_set) static pid_t _exec_service (const char *service, const char *arg) { @@ -528,7 +528,7 @@ static pid_t _exec_service (const char *service, const char *arg) if (pid == -1) fprintf (stderr, "vfork: %s\n", strerror (errno)); - + return (pid); } |