Added xstrdup, removed static version from smbpasswd.c
[ira/wip.git] / source3 / utils / smbpasswd.c
index 13ca1c0d71525b0ebd95b91f6d3dac0ed747be88..c5aafeb723350909e428f2c00f5dcc2014b29c0e 100644 (file)
@@ -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.
 **********************************************************/