diff options
author | Roy Marples <roy@marples.name> | 2007-07-10 19:14:37 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-07-10 19:14:37 +0000 |
commit | 023d66578b051fda123df4d2c07ae8492a71da93 (patch) | |
tree | 882a476d72f32176e358294b9774d8ae94f9e847 /src | |
parent | 05201b514b99d636af8067e442b2c6ab04e6d530 (diff) |
Rename variable
Diffstat (limited to 'src')
-rw-r--r-- | src/librc.c | 8 | ||||
-rw-r--r-- | src/rc.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/librc.c b/src/librc.c index 4ee82f01..9bd89cd9 100644 --- a/src/librc.c +++ b/src/librc.c @@ -205,7 +205,7 @@ char **rc_service_options (const char *service) } librc_hidden_def(rc_service_options) -char *rc_service_description (const char *service, const char *function) +char *rc_service_description (const char *service, const char *option) { char *svc; char cmd[PATH_MAX]; @@ -219,11 +219,11 @@ char *rc_service_description (const char *service, const char *function) svc = rc_resolve_service (service); - if (! function) - function = ""; + if (! option) + option = ""; snprintf (cmd, sizeof (cmd), ". '%s'; echo \"${description%s%s}\"", - svc, function ? "_" : "", function); + svc, option ? "_" : "", option); if (! (fp = popen (cmd, "r"))) { eerror ("popen `%s': %s", svc, strerror (errno)); free (svc); @@ -45,7 +45,7 @@ typedef enum char *rc_resolve_service (const char *service); bool rc_service_exists (const char *service); char **rc_service_options (const char *service); -char *rc_service_description (const char *service, const char *function); +char *rc_service_description (const char *service, const char *option); bool rc_service_in_runlevel (const char *service, const char *runlevel); bool rc_service_state (const char *service, rc_service_state_t state); bool rc_mark_service (const char *service, rc_service_state_t state); |