From f97aab46991ddf343f057d6fa4f4d02322923a2d Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 5 Jun 2013 10:30:40 +0200 Subject: [PATCH] Rename stat_restart_counter --> restart_counter Signed-off-by: Joachim Nilsson --- svc.c | 6 +++--- svc.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/svc.c b/svc.c index b0e0c018..d45e5a14 100644 --- a/svc.c +++ b/svc.c @@ -383,7 +383,7 @@ void svc_monitor(void) /* Restarting lost service. */ if (svc_enabled(svc, 0, NULL)) { - svc->stat_restart_counter++; + svc->restart_counter++; svc_start(svc); } @@ -509,7 +509,7 @@ int svc_stop(svc_t *svc) if (svc->pid <= 1) { _d("Bad PID %d for %s, SIGTERM", svc->pid, svc->desc); svc->pid = 0; - svc->stat_restart_counter = 0; + svc->restart_counter = 0; return 1; } @@ -523,7 +523,7 @@ int svc_stop(svc_t *svc) if (runlevel != 1) print_result(res); svc->pid = 0; - svc->stat_restart_counter = 0; + svc->restart_counter = 0; return res; } diff --git a/svc.h b/svc.h index 26d0e632..1add925c 100644 --- a/svc.h +++ b/svc.h @@ -59,7 +59,7 @@ typedef struct svc { svc_type_t type; int reload; int runlevels; - unsigned int stat_restart_counter; /* Incremented for each restart by service monitor. */ + unsigned int restart_counter; /* Incremented for each restart by service monitor. */ char cmd[MAX_ARG_LEN]; char args[MAX_NUM_SVC_ARGS][MAX_ARG_LEN]; char desc[MAX_STR_LEN];