From: Martin Schwenke Date: Fri, 8 Jun 2018 08:48:07 +0000 (+1000) Subject: ctdb-common: Drop unused function mkdir_p_or_die() X-Git-Tag: ldb-1.5.0~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7ef0c97e981ff6097eeca5b7ecf5136955b23fe;p=thirdparty%2Fsamba.git ctdb-common: Drop unused function mkdir_p_or_die() Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Fri Jul 27 08:42:20 CEST 2018 on sn-devel-144 --- diff --git a/ctdb/common/system.c b/ctdb/common/system.c index a95f314e66f..51149edbaf5 100644 --- a/ctdb/common/system.c +++ b/ctdb/common/system.c @@ -143,20 +143,6 @@ void lockdown_memory(bool valgrinding) #endif } -void mkdir_p_or_die(const char *dir, int mode) -{ - int ret; - - ret = mkdir_p(dir, mode); - if (ret != 0) { - DEBUG(DEBUG_ALERT, - ("ctdb exiting with error: " - "failed to create directory \"%s\" (%s)\n", - dir, strerror(errno))); - exit(1); - } -} - void ctdb_wait_for_process_to_exit(pid_t pid) { while (kill(pid, 0) == 0 || errno != ESRCH) { diff --git a/ctdb/common/system.h b/ctdb/common/system.h index 8d558e2f7ad..042e7ccac0e 100644 --- a/ctdb/common/system.h +++ b/ctdb/common/system.h @@ -29,8 +29,6 @@ void reset_scheduler(void); void lockdown_memory(bool valgrinding); -void mkdir_p_or_die(const char *dir, int mode); - void ctdb_wait_for_process_to_exit(pid_t pid); bool ctdb_sys_check_iface_exists(const char *iface);