From 370e5c775a5072583bc57708bbf2c9e0320b8cd8 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 26 Jul 2011 16:58:42 -0500 Subject: runscript: rename saveDir back to save to fix compile error --- src/rc/runscript.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/rc') diff --git a/src/rc/runscript.c b/src/rc/runscript.c index 0907ce1a..02d9e7ea 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -1101,7 +1101,7 @@ runscript(int argc, char **argv) int retval, opt, depoptions = RC_DEP_TRACE; RC_STRING *svc; char path[PATH_MAX], lnk[PATH_MAX]; - char *dir, *saveDir = NULL, *saveLnk = NULL; + char *dir, *save = NULL, *saveLnk = NULL; char pidstr[10]; size_t l = 0, ll; const char *file; @@ -1133,14 +1133,14 @@ runscript(int argc, char **argv) if (readlink(argv[1], lnk, sizeof(lnk)-1)) { dir = dirname(path); if (strchr(lnk, '/')) { - saveDir = xstrdup(dir); + save = xstrdup(dir); saveLnk = xstrdup(lnk); dir = dirname(saveLnk); - if (strcmp(dir, saveDir) == 0) + if (strcmp(dir, save) == 0) file = basename_c(argv[1]); else file = basename_c(lnk); - dir = saveDir; + dir = save; } else file = basename_c(argv[1]); ll = strlen(dir) + strlen(file) + 2; @@ -1150,7 +1150,7 @@ runscript(int argc, char **argv) free(service); service = xstrdup(lnk); } - free(saveDir); + free(save); free(saveLnk); } if (!service) -- cgit v1.2.3