Signed-off-by: John Crispin <blogic@openwrt.org>
* Remove given delta save directory (if any).
*/
static void
* Remove given delta save directory (if any).
*/
static void
-rpc_uci_purge_savedir(const char *path)
+rpc_uci_purge_dir(const char *path)
char path[PATH_MAX];
snprintf(path, sizeof(path) - 1, RPC_UCI_SAVEDIR_PREFIX "%s", ses->id);
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++)
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]);