[balsa/remember-mailbox-positions: 3/4] mailbox: Indentation and type fixes



commit 981a7113317d574aeac185ae8c03f7a8dc49a595
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Feb 13 11:28:41 2019 -0500

    mailbox: Indentation and type fixes

 libbalsa/mailbox.c | 6 +++---
 libbalsa/mailbox.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index 8df9536eb..c0ca8e68d 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -2565,7 +2565,7 @@ libbalsa_mailbox_set_position(LibBalsaMailbox * mailbox, gint position)
     view->used = 1;
 
     if (view->position != position) {
-       view->position = position;
+        view->position = position;
         view->in_sync = 0;
     }
 }
@@ -2687,8 +2687,8 @@ libbalsa_mailbox_get_mtime(LibBalsaMailbox * mailbox)
 gint
 libbalsa_mailbox_get_position(LibBalsaMailbox * mailbox)
 {
-    return (mailbox && mailbox->view) ?
-       mailbox->view->position : libbalsa_mailbox_view_default.position;
+    return (mailbox != NULL && mailbox->view != NULL) ?
+        mailbox->view->position : libbalsa_mailbox_view_default.position;
 }
 
 /* End of get methods. */
diff --git a/libbalsa/mailbox.h b/libbalsa/mailbox.h
index 4d57a669a..5793714cf 100644
--- a/libbalsa/mailbox.h
+++ b/libbalsa/mailbox.h
@@ -184,7 +184,7 @@ struct _LibBalsaMailboxView {
     int unread;
     int total;
     time_t mtime;       /* Mailbox mtime when counts were cached. */
-    gint position;      /* Position in the notebook */
+    int position;       /* Position in the notebook */
 };
 
 struct _LibBalsaMailbox {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]