diff options
author | Jeremy Allison <jra@samba.org> | 2007-12-06 17:16:33 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-06 17:16:33 -0800 |
commit | c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6 (patch) | |
tree | e55e332617c8bb33b5f173c33936828adfd9c76c /source/lib/util.c | |
parent | 48252d124d83aaa502b7821564978b9bf5babd03 (diff) | |
download | samba-c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6.tar.gz samba-c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6.tar.xz samba-c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6.zip |
Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles....
Jeremy.
Diffstat (limited to 'source/lib/util.c')
-rw-r--r-- | source/lib/util.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index f0ea6c8e333..2d90d211dd1 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -57,9 +57,6 @@ extern unsigned int global_clobber_region_line; enum protocol_types Protocol = PROTOCOL_COREPLUS; -/* a default finfo structure to ensure all fields are sensible */ -file_info def_finfo; - /* this is used by the chaining code */ int chain_size = 0; @@ -693,21 +690,6 @@ char *clean_name(TALLOC_CTX *ctx, const char *s) } /******************************************************************* - Horrible temporary hack until pstring is dead. -********************************************************************/ - -char *pstring_clean_name(pstring s) -{ - char *str = clean_name(NULL,s); - if (!str) { - return NULL; - } - pstrcpy(s, str); - TALLOC_FREE(str); - return s; -} - -/******************************************************************* Close the low 3 fd's and open dev/null in their place. ********************************************************************/ @@ -718,7 +700,7 @@ void close_low_fds(bool stderr_too) int i; close(0); - close(1); + close(1); if (stderr_too) close(2); |