Ticket #3547: mc-3547-direntry.cremove-unused-variables.patch

File mc-3547-direntry.cremove-unused-variables.patch, 1.7 KB (added by and, 7 years ago)
  • lib/vfs/direntry.c

    From cca9700f6c8afa54872846ef64ee2edfe0e3c591 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Sat, 16 Jan 2016 23:14:04 +0000
    Subject: [PATCH] direntry.c remove unused variables
    
    self counting only
    
    ---
     lib/vfs/direntry.c | 6 ------
     1 file changed, 6 deletions(-)
    
    diff --git a/lib/vfs/direntry.c b/lib/vfs/direntry.c
    index 74b0c49..66742b5 100644
    a b struct dirhandle 
    9292 
    9393/*** file scope variables ************************************************************************/ 
    9494 
    95 static volatile int total_inodes = 0, total_entries = 0; 
    96  
    9795/*** file scope functions ************************************************************************/ 
    9896/* --------------------------------------------------------------------------------------------- */ 
    9997 
    vfs_s_new_inode (struct vfs_class *me, struct vfs_s_super *super, struct stat *i 
    891889    ino->st.st_dev = MEDATA->rdev; 
    892890 
    893891    super->ino_usage++; 
    894     total_inodes++; 
    895892 
    896893    CALL (init_inode) (me, ino); 
    897894 
    vfs_s_free_inode (struct vfs_class *me, struct vfs_s_inode *ino) 
    923920        unlink (ino->localname); 
    924921        g_free (ino->localname); 
    925922    } 
    926     total_inodes--; 
    927923    ino->super->ino_usage--; 
    928924    g_free (ino); 
    929925} 
    vfs_s_new_entry (struct vfs_class *me, const char *name, struct vfs_s_inode *ino 
    936932    struct vfs_s_entry *entry; 
    937933 
    938934    entry = g_new0 (struct vfs_s_entry, 1); 
    939     total_entries++; 
    940935 
    941936    entry->name = g_strdup (name); 
    942937    entry->ino = inode; 
    vfs_s_free_entry (struct vfs_class *me, struct vfs_s_entry *ent) 
    963958        vfs_s_free_inode (me, ent->ino); 
    964959    } 
    965960 
    966     total_entries--; 
    967961    g_free (ent); 
    968962} 
    969963