summaryrefslogtreecommitdiffstats
path: root/imap/util.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2009-06-09 21:15:06 -0700
committerBrendan Cully <brendan@kublai.com>2009-06-09 21:15:06 -0700
commit5a70f3d095522dc9ba967a9948ccc09edc9834ad (patch)
treefc75e85a0980784312f14f03434c9bb6b9f394c1 /imap/util.c
parent476e737442d307632bf8e96e2a740078b1d3696d (diff)
Remove trailing whitespace.
Diffstat (limited to 'imap/util.c')
-rw-r--r--imap/util.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/imap/util.c b/imap/util.c
index 53a7ffb6..aecf0a07 100644
--- a/imap/util.c
+++ b/imap/util.c
@@ -2,21 +2,21 @@
* Copyright (C) 1996-8 Michael R. Elkins <me@mutt.org>
* Copyright (C) 1996-9 Brandon Long <blong@fiction.net>
* Copyright (C) 1999-2009 Brendan Cully <brendan@kublai.com>
- *
+ *
* 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.
- */
+ */
/* general IMAP utility functions */
@@ -226,7 +226,7 @@ int imap_parse_path (const char* path, IMAP_MBOX* mx)
else
/* walk past closing '}' */
mx->mbox = safe_strdup (c+1);
-
+
if ((c = strrchr (tmp, '@')))
{
*c = '\0';
@@ -234,14 +234,14 @@ int imap_parse_path (const char* path, IMAP_MBOX* mx)
strfcpy (tmp, c+1, sizeof (tmp));
mx->account.flags |= M_ACCT_USER;
}
-
+
if ((n = sscanf (tmp, "%127[^:/]%127s", mx->account.host, tmp)) < 1)
{
dprint (1, (debugfile, "imap_parse_path: NULL host in %s\n", path));
FREE (&mx->mbox);
return -1;
}
-
+
if (n > 1) {
if (sscanf (tmp, ":%hu%127s", &(mx->account.port), tmp) >= 1)
mx->account.flags |= M_ACCT_PORT;
@@ -409,12 +409,12 @@ void imap_free_idata (IMAP_DATA** idata)
* are not required to do this.
* Moreover, IMAP servers may dislike the path ending with the delimiter.
*/
-char *imap_fix_path (IMAP_DATA *idata, const char *mailbox, char *path,
+char *imap_fix_path (IMAP_DATA *idata, const char *mailbox, char *path,
size_t plen)
{
int i = 0;
char delim = '\0';
-
+
if (idata)
delim = idata->delim;
@@ -424,7 +424,7 @@ char *imap_fix_path (IMAP_DATA *idata, const char *mailbox, char *path,
|| *mailbox == delim)
{
/* use connection delimiter if known. Otherwise use user delimiter */
- if (!idata)
+ if (!delim)
delim = *mailbox;
while (*mailbox &&
@@ -535,7 +535,7 @@ time_t imap_parse_date (char *s)
struct tm t;
time_t tz;
- t.tm_mday = (s[0] == ' '? s[1] - '0' : (s[0] - '0') * 10 + (s[1] - '0'));
+ t.tm_mday = (s[0] == ' '? s[1] - '0' : (s[0] - '0') * 10 + (s[1] - '0'));
s += 2;
if (*s != '-')
return 0;
@@ -603,7 +603,7 @@ void imap_quote_string (char *dest, size_t dlen, const char *src)
*pt++ = '"';
/* save room for trailing quote-char */
dlen -= 2;
-
+
for (; *s && dlen; s++)
{
if (strchr (quote, *s))
@@ -683,7 +683,7 @@ void imap_unmunge_mbox_name (char *s)
imap_utf7_decode (&buf);
strncpy (s, buf, strlen (s));
}
-
+
FREE (&buf);
}
@@ -709,10 +709,10 @@ int imap_wordcasecmp(const char *a, const char *b)
return ascii_strcasecmp(a, tmp);
}
-/*
+/*
* Imap keepalive: poll the current folder to keep the
* connection alive.
- *
+ *
*/
static RETSIGTYPE alrm_handler (int sig)
@@ -761,7 +761,7 @@ int imap_wait_keepalive (pid_t pid)
int rc;
short imap_passive = option (OPTIMAPPASSIVE);
-
+
set_option (OPTIMAPPASSIVE);
set_option (OPTKEEPQUIET);
@@ -786,7 +786,7 @@ int imap_wait_keepalive (pid_t pid)
}
alarm (0); /* cancel a possibly pending alarm */
-
+
sigaction (SIGALRM, &oldalrm, NULL);
sigprocmask (SIG_SETMASK, &oldmask, NULL);