summaryrefslogtreecommitdiffstats
path: root/source/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-09-05 19:59:55 +0000
committerJeremy Allison <jra@samba.org>2003-09-05 19:59:55 +0000
commitf35e9a8b909d3c74be47083ccc4a4e91a14938db (patch)
tree94bec8e4eb1017cd886adae1518c8ffe2d47ee4f /source/smbd/chgpasswd.c
parent3913e43724870c62a0d77ec3e73cbe9480cb6247 (diff)
downloadsamba-f35e9a8b909d3c74be47083ccc4a4e91a14938db.tar.gz
samba-f35e9a8b909d3c74be47083ccc4a4e91a14938db.tar.xz
samba-f35e9a8b909d3c74be47083ccc4a4e91a14938db.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.
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r--source/smbd/chgpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c
index 0009f09028d..d99570ff7c0 100644
--- a/source/smbd/chgpasswd.c
+++ b/source/smbd/chgpasswd.c
@@ -259,7 +259,7 @@ static int expect(int master, char *issue, char *expected)
/* Eat leading/trailing whitespace before match. */
pstring str;
pstrcpy( str, buffer);
- trim_string( str, " ", " ");
+ trim_char( str, ' ', ' ');
if ((match = (unix_wild_match(expected, str) == 0)))
timeout = 200;