summaryrefslogtreecommitdiffstats
path: root/source/lib/util.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-19 02:35:43 +0000
committerJeremy Allison <jra@samba.org>1998-09-19 02:35:43 +0000
commitb55f93b213ee61c35e7a87a2be63191d55186bd6 (patch)
treef5166fa05abcce1a9c3d30a254e31d5e11159d85 /source/lib/util.c
parent89a4a73caf474e59f239f50ad6d93e5df66ae300 (diff)
downloadsamba-b55f93b213ee61c35e7a87a2be63191d55186bd6.tar.gz
samba-b55f93b213ee61c35e7a87a2be63191d55186bd6.tar.xz
samba-b55f93b213ee61c35e7a87a2be63191d55186bd6.zip
Remove some byte-copying code in unix_format() that did nothing except
slow down my benchmark :-). Jeremy.
Diffstat (limited to 'source/lib/util.c')
-rw-r--r--source/lib/util.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 7c37d15bb99..2df7689b944 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -924,15 +924,7 @@ void string_replace(char *s,char oldc,char newc)
****************************************************************************/
void unix_format(char *fname)
{
- pstring namecopy;
string_replace(fname,'\\','/');
-
- if (*fname == '/')
- {
- pstrcpy(namecopy,fname);
- pstrcpy(fname,".");
- pstrcat(fname,namecopy);
- }
}
/****************************************************************************