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



commit 24fa0720485d692f6ce52ae2a2016f7ee4b42176
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 1a48c8060..d748456db 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -2577,7 +2577,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;
     }
 }
@@ -2699,8 +2699,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 5dfd23d7a..fa58a111b 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]