diff options
author | Jeremy Allison <jra@samba.org> | 2001-10-22 02:38:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-10-22 02:38:45 +0000 |
commit | c032c2b36432d91cab4dbaf1ea4009b1194c4ccc (patch) | |
tree | 974826a193d085d61cdda01a1b97c29d9407385e /source3/utils | |
parent | 96ef1b0eb2d408a4ac9f7cc1b7c1bfe53252715d (diff) | |
download | samba-c032c2b36432d91cab4dbaf1ea4009b1194c4ccc.tar.gz samba-c032c2b36432d91cab4dbaf1ea4009b1194c4ccc.tar.bz2 samba-c032c2b36432d91cab4dbaf1ea4009b1194c4ccc.zip |
Added xstrdup, removed static version from smbpasswd.c
Jeremy.
(This used to be commit d01a9e5974d80ee8be2f7a20aeaae5826325d035)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbpasswd.c | 14 |
1 files changed, 0 insertions, 14 deletions
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 @@ -34,20 +34,6 @@ extern int optind; 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. **********************************************************/ static void usage(void) |