summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-11-03 19:24:45 +0000
committerJeremy Allison <jra@samba.org>1997-11-03 19:24:45 +0000
commitcdc6099647f7a48a8e31f9dfc331fe82dd66acdf (patch)
tree94dc6f2206e99647089b49cc6ca638dc90744643 /source3/lib
parent4039df6d4b28064a6e72fbdbcf34cce6f961c4c4 (diff)
downloadsamba-cdc6099647f7a48a8e31f9dfc331fe82dd66acdf.tar.gz
samba-cdc6099647f7a48a8e31f9dfc331fe82dd66acdf.tar.bz2
samba-cdc6099647f7a48a8e31f9dfc331fe82dd66acdf.zip
Rolling back the files
loadparm.c : to equivalent to version 1.67 reply.c : to equivalent to version 1.69 server.c : to equivalent to version 1.122 util.c : to equivalent to version 1.98 to remove the incorrect changes. proto.h: The usual. rpc_pipes/smbparse.c : Backeting stuff that SHOULD NOT BE IN THE none-NTDOMAIN build ! Jeremy. (This used to be commit 6064c9d80fd9fcc3ceec528494ba5e2591610098)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 9ee9bbab1c..4d098013f2 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -4561,44 +4561,3 @@ char *tab_depth(int depth)
}
-/*******************************************************************
-A convenience routine to grab string parameters into a rotating
-buffer. The buffers can be written to by callers without affecting
-the source string.
-********************************************************************/
-char *string_buffer(int sz)
-{
- static char *bufs[10];
- static int buflen[10];
- static int next = -1;
- char *ret;
- int i, len;
-
- if (next == -1) {
- /* initialisation */
- for (i=0;i<10;i++) {
- bufs[i] = NULL;
- buflen[i] = 0;
- }
- next = 0;
- }
-
- len = MAX(sz+100,sizeof(pstring)); /* the +100 is for some
- substitution room */
-
- if (buflen[next] != len) {
- buflen[next] = len;
- if (bufs[next]) free(bufs[next]);
- bufs[next] = (char *)malloc(len);
- if (!bufs[next]) {
- DEBUG(0,("out of memory in lp_string_buffer()"));
- exit(1);
- }
- }
-
- ret = &bufs[next][0];
- next = (next+1)%10;
- *ret = 0;
-
- return(ret);
-}