summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/filename.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index b0c44d503a..729ef8c809 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -131,6 +131,7 @@ static hash_table stat_cache;
case.
*****************************************************************************/
+#if 0 /* This function unused?? */
static BOOL stat_name_equal_len( char *stat_name, char *orig_name, int len)
{
BOOL matched = (memcmp( stat_name, orig_name, len) == 0);
@@ -139,6 +140,7 @@ static BOOL stat_name_equal_len( char *stat_name, char *orig_name, int len)
return matched;
}
+#endif
/****************************************************************************
Add an entry into the stat cache.
@@ -243,7 +245,6 @@ static BOOL stat_cache_lookup(connection_struct *conn, char *name, char *dirpath
char **start, SMB_STRUCT_STAT *pst)
{
stat_cache_entry *scp;
- stat_cache_entry *longest_hit = NULL;
char *trans_name;
pstring chk_name;
int namelen;