Add const.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 Mar 2003 09:08:34 +0000 (09:08 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 17 Mar 2003 09:08:34 +0000 (09:08 +0000)
(This used to be commit 02f81719c7c179b61663bdf789c01ab62286fea2)

source3/smbd/dir.c
source3/smbd/filename.c

index ec570d3a18018c2cb087a3068af3861d30de6f51..6cf56fd373bb0089ea1a438de7c10ff8ad7163df 100644 (file)
@@ -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;
index 7d3527402e88c2aef65ed3d8ad9ded37127a28b7..ad707a2b9dd7e5275b1a8dd67fe4b1e3789fb629 100644 (file)
@@ -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);