]> granicus.if.org Git - neomutt/commitdiff
replace 'IMAP_LIST' with 'struct ImapList'
authorRichard Russon <rich@flatcap.org>
Tue, 16 May 2017 13:18:29 +0000 (14:18 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 16 May 2017 14:21:29 +0000 (15:21 +0100)
imap/browse.c
imap/command.c
imap/imap.c
imap/imap_private.h

index c916c0e1f487da78bc0486e3aa02656fafbcb9f3..3fbe3c13f43035a6cb9029fc91266ff5fb5d514e 100644 (file)
@@ -111,7 +111,7 @@ static void imap_add_folder(char delim, char *folder, int noselect, int noinferi
 static int browse_add_list_result(struct ImapData *idata, const char *cmd,
                                   struct browser_state *state, short isparent)
 {
-  IMAP_LIST list;
+  struct ImapList list;
   IMAP_MBOX mx;
   int rc;
 
@@ -152,7 +152,7 @@ static int browse_add_list_result(struct ImapData *idata, const char *cmd,
 int imap_browse(char *path, struct browser_state *state)
 {
   struct ImapData *idata = NULL;
-  IMAP_LIST list;
+  struct ImapList list;
   char buf[LONG_STRING];
   char mbox[LONG_STRING];
   char munged_mbox[LONG_STRING];
index b9b4d23fea9c24ff035dff4664ae0f523b0e7bbe..3a4e069dfeb6d8f6277f01a8ae48c387b04d76bf 100644 (file)
@@ -280,17 +280,17 @@ static void cmd_parse_capability(struct ImapData *idata, char *s)
 
 static void cmd_parse_list(struct ImapData *idata, char *s)
 {
-  IMAP_LIST *list = NULL;
-  IMAP_LIST lb;
+  struct ImapList *list = NULL;
+  struct ImapList lb;
   char delimbuf[5]; /* worst case: "\\"\0 */
   long litlen;
 
   if (idata->cmddata && idata->cmdtype == IMAP_CT_LIST)
-    list = (IMAP_LIST *) idata->cmddata;
+    list = (struct ImapList *) idata->cmddata;
   else
     list = &lb;
 
-  memset(list, 0, sizeof(IMAP_LIST));
+  memset(list, 0, sizeof(struct ImapList));
 
   /* flags */
   s = imap_next_word(s);
@@ -355,7 +355,7 @@ static void cmd_parse_lsub(struct ImapData *idata, char *s)
   char errstr[STRING];
   struct Buffer err, token;
   struct CissUrl url;
-  IMAP_LIST list;
+  struct ImapList list;
 
   if (idata->cmddata && idata->cmdtype == IMAP_CT_LIST)
   {
index 2792c437853b9ac6a22e1c36d5b56ecfd56f348c..44c341f1a6d025853760080580135bec12d8c5b5 100644 (file)
@@ -1977,7 +1977,7 @@ int imap_complete(char *dest, size_t dlen, char *path)
   struct ImapData *idata = NULL;
   char list[LONG_STRING];
   char buf[LONG_STRING];
-  IMAP_LIST listresp;
+  struct ImapList listresp;
   char completion[LONG_STRING];
   int clen, matchlen = 0;
   int completions = 0;
index 20932704ba5df0fd8848ab3ce01d13bfaa5ae572..08ad4e01658414098ea2ba2e03d2dae654935ee0 100644 (file)
@@ -142,7 +142,7 @@ typedef struct
   unsigned int unseen;
 } IMAP_STATUS;
 
-typedef struct
+struct ImapList
 {
   char *name;
 
@@ -150,7 +150,7 @@ typedef struct
   /* if we end up storing a lot of these we could turn this into a bitfield */
   bool noselect;
   bool noinferiors;
-} IMAP_LIST;
+};
 
 /* IMAP command structure */
 struct ImapCommand