summaryrefslogtreecommitdiffstats
path: root/buffy.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2018-12-31 16:06:53 -0800
committerKevin McCarthy <kevin@8t8.us>2018-12-31 16:06:53 -0800
commit443295ee65c3ebc5085fcab3cc9d533b0fac4f0f (patch)
treedc425cf8028e3b78c635148bfc0a905b1e800327 /buffy.c
parent1c59c27129b45b9f2cfd630428f57c643276b906 (diff)
Remove trailing whitespace.
The result of find . -name "*.[ch]" -exec emacs -batch {} \ --eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
Diffstat (limited to 'buffy.c')
-rw-r--r--buffy.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/buffy.c b/buffy.c
index b231f0cd..d6586121 100644
--- a/buffy.c
+++ b/buffy.c
@@ -1,17 +1,17 @@
-/*
+/*
* Copyright (C) 1996-2000,2010,2013 Michael R. Elkins <me@mutt.org>
* Copyright (C) 2016-2017 Kevin J. McCarthy <kevin@8t8.us>
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -58,7 +58,7 @@ static short BuffyNotify = 0; /* # of unnotified new boxes */
static BUFFY* buffy_get (const char *path);
-/* Find the last message in the file.
+/* Find the last message in the file.
* upon success return 0. If no message found - return -1 */
static int fseek_last_message (FILE * f)
@@ -176,7 +176,7 @@ void mutt_buffy_cleanup (const char *buf, struct stat *st)
#else
ut.actime = st->st_atime;
ut.modtime = time (NULL);
- utime (buf, &ut);
+ utime (buf, &ut);
#endif
}
else
@@ -199,13 +199,13 @@ BUFFY *mutt_find_mailbox (const char *path)
BUFFY *tmp = NULL;
struct stat sb;
struct stat tmp_sb;
-
+
if (stat (path,&sb) != 0)
return NULL;
for (tmp = Incoming; tmp; tmp = tmp->next)
{
- if (stat (tmp->path,&tmp_sb) ==0 &&
+ if (stat (tmp->path,&tmp_sb) ==0 &&
sb.st_dev == tmp_sb.st_dev && sb.st_ino == tmp_sb.st_ino)
break;
}
@@ -568,7 +568,7 @@ int mutt_buffy_check (int force)
contex_sb.st_dev=0;
contex_sb.st_ino=0;
}
-
+
for (tmp = Incoming; tmp; tmp = tmp->next)
{
#ifdef USE_SIDEBAR
@@ -654,7 +654,7 @@ int mutt_buffy_list (void)
int first = 1;
int have_unnotified = BuffyNotify;
-
+
buffylist[0] = 0;
pos += strlen (strncat (buffylist, _("New mail in "), sizeof (buffylist) - 1 - pos)); /* __STRNCAT_CHECKED__ */
for (tmp = Incoming; tmp; tmp = tmp->next)
@@ -665,11 +665,11 @@ int mutt_buffy_list (void)
strfcpy (path, tmp->path, sizeof (path));
mutt_pretty_mailbox (path, sizeof (path));
-
+
if (!first && (MuttMessageWindow->cols >= 7) &&
(pos + strlen (path) >= (size_t)MuttMessageWindow->cols - 7))
break;
-
+
if (!first)
pos += strlen (strncat(buffylist + pos, ", ", sizeof(buffylist)-1-pos)); /* __STRNCAT_CHECKED__ */
@@ -692,7 +692,7 @@ int mutt_buffy_list (void)
mutt_message ("%s", buffylist);
return (1);
}
- /* there were no mailboxes needing to be notified, so clean up since
+ /* there were no mailboxes needing to be notified, so clean up since
* BuffyNotify has somehow gotten out of sync
*/
BuffyNotify = 0;
@@ -725,7 +725,7 @@ int mutt_buffy_notify (void)
return (0);
}
-/*
+/*
* mutt_buffy() -- incoming folders completion routine
*
* given a folder name, this routine gives the next incoming folder with new
@@ -738,13 +738,13 @@ void mutt_buffy (char *s, size_t slen)
mutt_expand_path (s, slen);
- if (mutt_buffy_check (0))
+ if (mutt_buffy_check (0))
{
for (pass = 0; pass < 2; pass++)
- for (tmp = Incoming; tmp; tmp = tmp->next)
+ for (tmp = Incoming; tmp; tmp = tmp->next)
{
mutt_expand_path (tmp->path, sizeof (tmp->path));
- if ((found || pass) && tmp->new)
+ if ((found || pass) && tmp->new)
{
strfcpy (s, tmp->path, slen);
mutt_pretty_mailbox (s, slen);