summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-17 09:08:34 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-17 09:08:34 +0000
commit1331a361bd6c5cde775da4db8aade78983ca71b1 (patch)
tree1ee29a8b8599959b73e77beda58aaf12c1da275a /source3
parenta564fed756a82d944ebde45da1ce4ea932011f10 (diff)
downloadsamba-1331a361bd6c5cde775da4db8aade78983ca71b1.tar.gz
samba-1331a361bd6c5cde775da4db8aade78983ca71b1.tar.bz2
samba-1331a361bd6c5cde775da4db8aade78983ca71b1.zip
Add const.
(This used to be commit 02f81719c7c179b61663bdf789c01ab62286fea2)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dir.c2
-rw-r--r--source3/smbd/filename.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index ec570d3a18..6cf56fd373 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -1008,7 +1008,7 @@ static ubi_dlNewList( dir_cache );
Output: None.
*****************************************************************************/
-void DirCacheAdd( const char *path, char *name, char *dname, int snum )
+void DirCacheAdd( const char *path, const char *name, const char *dname, int snum )
{
int pathlen;
int namelen;
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 7d3527402e..ad707a2b9d 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -39,7 +39,7 @@ static BOOL scan_directory(const char *path, char *name,size_t maxlength,
This needs to be careful about whether we are case sensitive.
****************************************************************************/
-static BOOL fname_equal(char *name1, char *name2)
+static BOOL fname_equal(const char *name1, const char *name2)
{
/* Normal filename handling */
if (case_sensitive)
@@ -52,7 +52,7 @@ static BOOL fname_equal(char *name1, char *name2)
Mangle the 2nd name and check if it is then equal to the first name.
****************************************************************************/
-static BOOL mangled_equal(char *name1, const char *name2, int snum)
+static BOOL mangled_equal(const char *name1, const char *name2, int snum)
{
pstring tmpname;
@@ -439,7 +439,7 @@ static BOOL scan_directory(const char *path, char *name, size_t maxlength,
connection_struct *conn,BOOL docache)
{
void *cur_dir;
- char *dname;
+ const char *dname;
BOOL mangled;
mangled = mangle_is_mangled(name);