From c032c2b36432d91cab4dbaf1ea4009b1194c4ccc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 22 Oct 2001 02:38:45 +0000 Subject: Added xstrdup, removed static version from smbpasswd.c Jeremy. (This used to be commit d01a9e5974d80ee8be2f7a20aeaae5826325d035) --- source3/utils/smbpasswd.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 13ca1c0d71..c5aafeb723 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -33,20 +33,6 @@ extern int optind; /* forced running in root-mode */ static BOOL local_mode; -/********************************************************* -a strdup with exit -**********************************************************/ -static char *xstrdup(char *s) -{ - s = strdup(s); - if (!s) { - fprintf(stderr,"out of memory\n"); - exit(1); - } - return s; -} - - /********************************************************* Print command usage on stderr and die. **********************************************************/ -- cgit