[balsa/remember-mailbox-positions: 3/4] mailbox: Indentation and type fixes
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/remember-mailbox-positions: 3/4] mailbox: Indentation and type fixes
- Date: Mon, 18 Feb 2019 01:30:22 +0000 (UTC)
commit f63cebeb1b2a63f8d100ee38bb49eba0f62b580f
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 d1076940e..1ab420743 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]