summaryrefslogtreecommitdiffstats
path: root/source/smbd/filename.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-03 08:28:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-03 08:28:12 +0000
commit3a7458f9472432ef12c43008414925fd1ce8ea0c (patch)
tree185f6140d3895e4d5304e4ef3f5ce4d7a34a7e82 /source/smbd/filename.c
parent96e9fa5f224966531fa8f9cf18cbc4bbb2fe60ed (diff)
downloadsamba-3a7458f9472432ef12c43008414925fd1ce8ea0c.tar.gz
samba-3a7458f9472432ef12c43008414925fd1ce8ea0c.tar.xz
samba-3a7458f9472432ef12c43008414925fd1ce8ea0c.zip
Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings. (Adds a lot of const). Andrew Bartlett
Diffstat (limited to 'source/smbd/filename.c')
-rw-r--r--source/smbd/filename.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/filename.c b/source/smbd/filename.c
index 202bd75d4c8..bcfd366741a 100644
--- a/source/smbd/filename.c
+++ b/source/smbd/filename.c
@@ -31,7 +31,7 @@ extern BOOL case_preserve;
extern BOOL short_case_preserve;
extern BOOL use_mangled_map;
-static BOOL scan_directory(char *path, char *name,connection_struct *conn,BOOL docache);
+static BOOL scan_directory(const char *path, pstring name,connection_struct *conn,BOOL docache);
/****************************************************************************
Check if two filenames are equal.
@@ -387,7 +387,7 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen
a valid one for the user to access.
****************************************************************************/
-BOOL check_name(char *name,connection_struct *conn)
+BOOL check_name(pstring name,connection_struct *conn)
{
BOOL ret;
@@ -428,7 +428,7 @@ BOOL check_name(char *name,connection_struct *conn)
If the name looks like a mangled name then try via the mangling functions
****************************************************************************/
-static BOOL scan_directory(char *path, char *name,connection_struct *conn,BOOL docache)
+static BOOL scan_directory(const char *path, pstring name,connection_struct *conn,BOOL docache)
{
void *cur_dir;
char *dname;