summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 5bf9409c2f..0b831ea335 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1542,14 +1542,6 @@ gid_t nametogid(const char *name)
}
/*******************************************************************
- legacy wrapper for smb_panic2()
-********************************************************************/
-void smb_panic( const char *why )
-{
- smb_panic2( why, True );
-}
-
-/*******************************************************************
Something really nasty happened - panic !
********************************************************************/
@@ -1557,7 +1549,7 @@ void smb_panic( const char *why )
#include <libexc.h>
#endif
-void smb_panic2(const char *why, BOOL decrement_pid_count )
+static void smb_panic2(const char *why, BOOL decrement_pid_count )
{
char *cmd;
int result;
@@ -1664,6 +1656,17 @@ void smb_panic2(const char *why, BOOL decrement_pid_count )
}
/*******************************************************************
+ wrapper for smb_panic2()
+********************************************************************/
+
+ void smb_panic( const char *why )
+{
+ smb_panic2( why, True );
+ /* Notreached. */
+ abort();
+}
+
+/*******************************************************************
A readdir wrapper which just returns the file name.
********************************************************************/