summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-01-04 18:45:01 -0800
committerKevin McCarthy <kevin@8t8.us>2019-01-04 19:50:16 -0800
commitefa3afb539b9672ebd6e64cb0c16b98c5f6b8a60 (patch)
tree8fd166307801d97c801d6a2e75f255d6b0ba0f48 /curs_lib.c
parent248c2ee8ed7c0ff333ae076041107210c5acd641 (diff)
Clean up formatting.
Add spaces after if, else, while, for, switch. Unify the brace placement style. The vast majority of the code uses Allman style so convert the relatively few K&R braces over.
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/curs_lib.c b/curs_lib.c
index a84b8168..cb43f9e7 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -587,7 +587,8 @@ void mutt_progress_init (progress_t* progress, const char *msg,
progress->flags = flags;
progress->msg = msg;
progress->size = size;
- if (progress->size) {
+ if (progress->size)
+ {
if (progress->flags & MUTT_PROGRESS_SIZE)
mutt_pretty_size (progress->sizestr, sizeof (progress->sizestr),
progress->size);
@@ -633,7 +634,8 @@ void mutt_progress_update (progress_t* progress, long pos, int percent)
update = 1;
/* skip refresh if not enough time has passed */
- if (update && progress->timestamp && !gettimeofday (&tv, NULL)) {
+ if (update && progress->timestamp && !gettimeofday (&tv, NULL))
+ {
now = ((unsigned int) tv.tv_sec * 1000)
+ (unsigned int) (tv.tv_usec / 1000);
if (now && now - progress->timestamp < TimeInc)
@@ -1079,7 +1081,8 @@ void mutt_curs_set (int cursor)
else
SavedCursor = cursor;
- if (curs_set (cursor) == ERR) {
+ if (curs_set (cursor) == ERR)
+ {
if (cursor == 1) /* cnorm */
curs_set (2); /* cvvis */
}