Ticket #3555: 0001-panel.h-define-typedef-list_type_t.patch

File 0001-panel.h-define-typedef-list_type_t.patch, 1.3 KB (added by mooffie, 7 years ago)
  • src/filemanager/panel.h

    From 3f7616c095434841b26b2ac673557da4ebdcb3e4 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Fri, 13 Nov 2015 16:00:35 +0200
    Subject: [PATCH] panel.h: define typedef list_type_t.
    
    We use 'typedef' to make it conform with all other type declarations
    in that file.
    ---
     src/filemanager/panel.h | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/src/filemanager/panel.h b/src/filemanager/panel.h
    index c1b7f2a..6ebd1ed 100644
    a b  
    2727 
    2828/*** enums ***************************************************************************************/ 
    2929 
    30 enum list_types 
     30typedef enum 
    3131{ 
    3232    list_full,                  /* Name, size, perm/date */ 
    3333    list_brief,                 /* Name */ 
    3434    list_long,                  /* Like ls -l */ 
    3535    list_user                   /* User defined */ 
    36 }; 
     36} list_type_t; 
    3737 
    3838typedef enum 
    3939{ 
    typedef struct 
    9393    Widget widget; 
    9494    dir_list dir;               /* Directory contents */ 
    9595 
    96     enum list_types list_type;  /* listing type */ 
     96    list_type_t list_type;      /* listing type */ 
    9797    int active;                 /* If panel is currently selected */ 
    9898    vfs_path_t *cwd_vpath;      /* Current Working Directory */ 
    9999    vfs_path_t *lwd_vpath;      /* Last Working Directory */