diff options
author | Roy Marples <roy@marples.name> | 2008-09-18 13:09:51 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-09-18 13:09:51 +0000 |
commit | 80a17eb5966a2b2c1dff3206621a338b45cbdf7d (patch) | |
tree | 859cff777b1282d1fb912782d77bbe5bdb443ce1 /src/rc/runscript.c | |
parent | 39304745d4eb49460d2aab307b85a8ff218bfc45 (diff) |
Clean up some compile warnings.
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r-- | src/rc/runscript.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c index 876503af..44cc2f85 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -547,18 +547,18 @@ static bool svc_wait(const char *svc) static RC_SERVICE svc_status(void) { char status[10]; - int (*e) (const char *fmt, ...) = &einfo; + int (*e) (const char *fmt, ...) __EINFO_PRINTF = einfo; RC_SERVICE state = rc_service_state(service); if (state & RC_SERVICE_STOPPING) { snprintf(status, sizeof(status), "stopping"); - e = &ewarn; + e = ewarn; } else if (state & RC_SERVICE_STARTING) { snprintf(status, sizeof(status), "starting"); - e = &ewarn; + e = ewarn; } else if (state & RC_SERVICE_INACTIVE) { snprintf(status, sizeof(status), "inactive"); - e = &ewarn; + e = ewarn; } else if (state & RC_SERVICE_STARTED) { errno = 0; if (_rc_can_find_pids() && @@ -566,7 +566,7 @@ static RC_SERVICE svc_status(void) errno != EACCES) { snprintf(status, sizeof(status), "crashed"); - e = &eerror; + e = eerror; } else snprintf(status, sizeof(status), "started"); } else |