# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1306149753 -7200
# Branch HEAD
# Node ID db2c3d895a1645159338d9a8d0b9361a832f276c
# Parent  4de4b24b9b362fcbf04a2901c2c2e9f3c9e91c9d
folder_file: remove struct stat

Remove struct stat, the used values were already duplicated in the struct.

Signed-off-by: Olaf Hering <[email protected]>

diff -r 4de4b24b9b36 -r db2c3d895a16 browser.c
--- a/browser.c Mon May 23 13:22:32 2011 +0200
+++ b/browser.c Mon May 23 13:22:33 2011 +0200
@@ -68,7 +68,6 @@ static void destroy_state (struct browse
   {
     FREE (&((state->entry)[c].name));
     FREE (&((state->entry)[c].desc));
-    FREE (&((state->entry)[c].st));
   }
 #ifdef USE_IMAP
   FREE (&state->folder);
@@ -347,8 +346,6 @@ static void add_folder (MUTTMENU *m, str
     (state->entry)[state->entrylen].uid = s->st_uid;
     (state->entry)[state->entrylen].nlink = s->st_nlink;
     
-    (state->entry)[state->entrylen].st = safe_malloc (sizeof (struct stat));
-    memcpy ((state->entry)[state->entrylen].st, s, sizeof (struct stat));
     (state->entry)[state->entrylen].local = 1;
   }
   else
diff -r 4de4b24b9b36 -r db2c3d895a16 browser.h
--- a/browser.h Mon May 23 13:22:32 2011 +0200
+++ b/browser.h Mon May 23 13:22:33 2011 +0200
@@ -27,7 +27,6 @@ struct folder_file
   uid_t uid;
   gid_t gid;
   nlink_t nlink;
-  struct stat *st;
 
   char *name;
   char *desc;

Reply via email to