]> granicus.if.org Git - neomutt/commitdiff
Replace `new` variable with `mark_new`
authorFederico Kircheis <federico.kircheis@gmail.com>
Wed, 3 Jul 2019 18:13:28 +0000 (20:13 +0200)
committerRichard Russon <rich@flatcap.org>
Fri, 5 Jul 2019 01:34:06 +0000 (02:34 +0100)
`new` is a reserved keyword in c++

nntp/nntp.c
nntp/nntp.h

index 495a1faaedac972f90e72fabef02910ee58c0d6a..ffde86a16afc3590e0b3398079e43228c9aafa0a 100644 (file)
@@ -2039,12 +2039,12 @@ int nntp_post(struct Mailbox *m, const char *msg)
 
 /**
  * nntp_active_fetch - Fetch list of all newsgroups from server
- * @param adata NNTP server
- * @param new   Mark the groups as new
+ * @param adata    NNTP server
+ * @param mark_new Mark the groups as new
  * @retval  0 Success
  * @retval -1 Failure
  */
-int nntp_active_fetch(struct NntpAccountData *adata, bool new)
+int nntp_active_fetch(struct NntpAccountData *adata, bool mark_new)
 {
   struct NntpMboxData tmp_mdata;
   char msg[256];
@@ -2072,7 +2072,7 @@ int nntp_active_fetch(struct NntpAccountData *adata, bool new)
     return -1;
   }
 
-  if (new)
+  if (mark_new)
   {
     for (; i < adata->groups_num; i++)
     {
index 51537865bfbdb1a114fae9255009d917982521cf..1cdd969c1576877fdd71bc8a46faaeba7773587e 100644 (file)
@@ -161,7 +161,7 @@ struct NntpMboxData *mutt_newsgroup_subscribe(struct NntpAccountData *adata, cha
 struct NntpMboxData *mutt_newsgroup_unsubscribe(struct NntpAccountData *adata, char *group);
 struct NntpMboxData *mutt_newsgroup_catchup(struct Mailbox *m, struct NntpAccountData *adata, char *group);
 struct NntpMboxData *mutt_newsgroup_uncatchup(struct Mailbox *m, struct NntpAccountData *adata, char *group);
-int nntp_active_fetch(struct NntpAccountData *adata, bool new);
+int nntp_active_fetch(struct NntpAccountData *adata, bool mark_new);
 int nntp_newsrc_update(struct NntpAccountData *adata);
 int nntp_post(struct Mailbox *m, const char *msg);
 int nntp_check_msgid(struct Context *ctx, const char *msgid);