summaryrefslogtreecommitdiffstats
path: root/history.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 /history.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 'history.c')
-rw-r--r--history.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/history.c b/history.c
index 21b3a1d2..f594746c 100644
--- a/history.c
+++ b/history.c
@@ -90,7 +90,7 @@ static void init_history (struct history *h)
{
int i;
- if(OldSize)
+ if (OldSize)
{
if (h->hist)
{
@@ -224,7 +224,7 @@ static void shrink_histfile (void)
}
if (!regen_file)
- for(hclass = HC_FIRST; hclass < HC_LAST; hclass++)
+ for (hclass = HC_FIRST; hclass < HC_LAST; hclass++)
if (n[hclass] > SaveHist)
{
regen_file = 1;
@@ -374,7 +374,7 @@ void mutt_init_history(void)
if (HistSize == OldSize)
return;
- for(hclass = HC_FIRST; hclass < HC_LAST; hclass++)
+ for (hclass = HC_FIRST; hclass < HC_LAST; hclass++)
init_history(&History[hclass]);
OldSize = HistSize;