From: John Crispin Date: Thu, 5 Sep 2013 19:55:49 +0000 (+0200) Subject: rename rpc_uci_purge_savedir to rpc_uci_purge_dir X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=commitdiff_plain;h=f1882ac5bde4ef6c75e22a3c89c367d51ac891c8 rename rpc_uci_purge_savedir to rpc_uci_purge_dir Signed-off-by: John Crispin --- diff --git a/uci.c b/uci.c index 11df4d9..a445d08 100644 --- a/uci.c +++ b/uci.c @@ -1115,7 +1115,7 @@ out: * Remove given delta save directory (if any). */ static void -rpc_uci_purge_savedir(const char *path) +rpc_uci_purge_dir(const char *path) { DIR *d; struct stat s; @@ -1152,7 +1152,7 @@ rpc_uci_purge_savedir_cb(struct rpc_session *ses, void *priv) char path[PATH_MAX]; snprintf(path, sizeof(path) - 1, RPC_UCI_SAVEDIR_PREFIX "%s", ses->id); - rpc_uci_purge_savedir(path); + rpc_uci_purge_dir(path); } /* @@ -1167,7 +1167,7 @@ void rpc_uci_purge_savedirs(void) if (!glob(RPC_UCI_SAVEDIR_PREFIX "*", 0, NULL, &gl)) { for (i = 0; i < gl.gl_pathc; i++) - rpc_uci_purge_savedir(gl.gl_pathv[i]); + rpc_uci_purge_dir(gl.gl_pathv[i]); globfree(&gl); }