diff options
author | Jeremy Allison <jra@samba.org> | 2003-09-05 19:59:55 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-09-05 19:59:55 +0000 |
commit | 94f59f54921174fc156fade575ca114d331b1bd8 (patch) | |
tree | 06c2548e853c68c2bb24cce2ce3ba75eb3c8497e /source3/msdfs | |
parent | 7544b0c77382e300da0e2daf2b325527a23e6ddc (diff) | |
download | samba-94f59f54921174fc156fade575ca114d331b1bd8.tar.gz samba-94f59f54921174fc156fade575ca114d331b1bd8.tar.bz2 samba-94f59f54921174fc156fade575ca114d331b1bd8.zip |
More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii.
Jeremy.
(This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
Diffstat (limited to 'source3/msdfs')
-rw-r--r-- | source3/msdfs/msdfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c index dc326f2eee..afe523bf19 100644 --- a/source3/msdfs/msdfs.c +++ b/source3/msdfs/msdfs.c @@ -40,7 +40,7 @@ static BOOL parse_dfs_path(char* pathname, struct dfs_path* pdp) ZERO_STRUCTP(pdp); - trim_string(temp,"\\","\\"); + trim_char(temp,'\\','\\'); DEBUG(10,("temp in parse_dfs_path: .%s. after trimming \\'s\n",temp)); /* now tokenize */ @@ -275,7 +275,7 @@ static BOOL resolve_dfs_path(char* dfspath, struct dfs_path* dp, char *q; pstring buf; pstrcpy(buf, dfspath); - trim_string(buf, NULL, "\\"); + trim_char(buf, '\0', '\\'); for (; consumed_level; consumed_level--) { q = strrchr(buf, '\\'); if (q) *q = 0; @@ -780,7 +780,7 @@ BOOL create_msdfs_link(struct junction_map* jn, BOOL exists) for(i=0; i<jn->referral_count; i++) { char* refpath = jn->referral_list[i].alternate_path; - trim_string(refpath, "\\", "\\"); + trim_char(refpath, '\\', '\\'); if(*refpath == '\0') { if (i == 0) insert_comma = False; |