* 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;
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);
}
/*
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);
}