From d23b44322570cb9a7aa2b86407bf4f91010a237b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 16 Jun 1998 18:25:36 +0000 Subject: clientgen: Added USE_SSL for client shutdown. clitar.c: Added 'Samba style' comments before string_create_s(). loadparm.c: Fixed missing comma in SSL code. util.c: Removed string_create_s(). Currently it's only called from clitar.c and having it here as well as a static in clitar causes the compile to break (Richard, please decide where you want this function). lib/rpc/parse/parse_net.c: Fix from to stop coredump on missing parameter. Jeremy. --- source/lib/util.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'source/lib/util.c') diff --git a/source/lib/util.c b/source/lib/util.c index 698edac5126..750ca0f3ab4 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -5016,25 +5016,6 @@ int unistrcpy(char *dst, char *src) return num_wchars; } -/******************************************************************* -Create a string of size size+1 (for the null) -*******************************************************************/ -char *string_create_s(int size) -{ - char *tmp; - - tmp = (char *)malloc(size+1); - - if (tmp == NULL) { - - DEBUG(0, ("Out of memory in string_create_s\n")); - - } - - return(tmp); - -} - /******************************************************************* safe string copy into a known length string. maxlength does not include the terminating zero. -- cgit