summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-18 02:06:41 +0000
committerJeremy Allison <jra@samba.org>2003-11-18 02:06:41 +0000
commit013a0511030729bf84f4c703dca3fa39ded5fe12 (patch)
treedca4ab71f587de0bf3a870bda0b7e319a570c5e1 /source3/lib
parent7b39861342279a3ecfb4b2b854162f2ec602afbd (diff)
downloadsamba-013a0511030729bf84f4c703dca3fa39ded5fe12.tar.gz
samba-013a0511030729bf84f4c703dca3fa39ded5fe12.tar.bz2
samba-013a0511030729bf84f4c703dca3fa39ded5fe12.zip
Remove unneeded second open for filename ending in '.' now we know it's
a mangled name. Added const. Fix inspired by Andrew Bartlett ideas. Jeremy. (This used to be commit 87eb336d659dfa5e92b495dd76a0f2e534931293)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index ce1389c8e9..39515c6599 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2234,7 +2234,7 @@ char *parent_dirname(const char *path)
Determine if a pattern contains any Microsoft wildcard characters.
*******************************************************************/
-BOOL ms_has_wild(char *s)
+BOOL ms_has_wild(const char *s)
{
char c;
while ((c = *s++)) {