]> granicus.if.org Git - neomutt/commitdiff
minor code tidying
authorRichard Russon <rich@flatcap.org>
Thu, 13 Dec 2018 20:32:26 +0000 (20:32 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 13 Dec 2018 23:05:37 +0000 (23:05 +0000)
boolify variables
make function static
fix translation typo

mutt_thread.c
nntp/nntp.c
po/fi.po
postpone.c

index 9f46b170d083de074bb4a802d2a28016d660745e..153dc44aac686ab8a5111042de73daa4fa500cdd 100644 (file)
@@ -73,7 +73,7 @@ static bool is_visible(struct Email *e, struct Context *ctx)
  * @param e Email
  * @retval true If the subject should be displayed
  */
-bool need_display_subject(struct Context *ctx, struct Email *e)
+static bool need_display_subject(struct Context *ctx, struct Email *e)
 {
   struct MuttThread *tmp = NULL, *tree = e->thread;
 
index 8773819b512be8e6a3ca0168ed73858cd64dab72..688e57813bcdac7797c1e87606c505b9c15e967c 100644 (file)
@@ -1475,7 +1475,7 @@ static int nntp_fetch_headers(struct Mailbox *m, void *hc, anum_t first, anum_t
  * @retval  0 No change
  * @retval -1 Lost connection
  */
-static int nntp_group_poll(struct NntpMboxData *mdata, int update_stat)
+static int nntp_group_poll(struct NntpMboxData *mdata, bool update_stat)
 {
   char buf[LONG_STRING] = "";
   anum_t count, first, last;
@@ -1544,7 +1544,7 @@ static int check_mailbox(struct Context *ctx)
     return -1;
 
   adata->check_time = now;
-  rc = nntp_group_poll(mdata, 0);
+  rc = nntp_group_poll(mdata, false);
   if (rc < 0)
   {
     nntp_newsrc_close(adata);
@@ -2133,7 +2133,7 @@ int nntp_check_new_groups(struct Mailbox *m, struct NntpAccountData *adata)
 
       if (mdata && mdata->subscribed)
       {
-        rc = nntp_group_poll(mdata, 1);
+        rc = nntp_group_poll(mdata, true);
         if (rc < 0)
           return -1;
         if (rc > 0)
index 60d7e74c3af91d78e94787fa773ed591a5add58e..d3c3c4d6705d361f3ba882c17f15ce6d4c7d310b 100644 (file)
--- a/po/fi.po
+++ b/po/fi.po
@@ -598,7 +598,7 @@ msgstr "Bcc: "
 #. L10N: Compose menu field.  May not want to translate.
 #: compose.c:142 compose.c:1042 send.c:387
 msgid "Subject: "
-msgstr "Subjet: "
+msgstr "Subject: "
 
 #. L10N: Compose menu field.  May not want to translate.
 #: compose.c:144
index 3626e34f6cf3ae0361b8c3b6eae6af9a796175f4..c4e943a806ab056e093926e659ed7bb6a06b47a3 100644 (file)
@@ -73,7 +73,7 @@ static const struct Mapping PostponeHelp[] = {
 
 static short PostCount = 0;
 static struct Context *PostContext = NULL;
-static short UpdateNumPostponed = 0;
+static bool UpdateNumPostponed = false;
 
 /**
  * mutt_num_postponed - Return the number of postponed messages
@@ -92,7 +92,7 @@ int mutt_num_postponed(struct Mailbox *m, bool force)
 
   if (UpdateNumPostponed)
   {
-    UpdateNumPostponed = 0;
+    UpdateNumPostponed = false;
     force = true;
   }
 
@@ -191,7 +191,7 @@ int mutt_num_postponed(struct Mailbox *m, bool force)
  */
 void mutt_update_num_postponed(void)
 {
-  UpdateNumPostponed = 1;
+  UpdateNumPostponed = true;
 }
 
 /**