aboutsummaryrefslogtreecommitdiff
path: root/blaze822.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-01-26 20:27:26 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-01-26 20:27:26 +0100
commit2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6 (patch)
tree240cda05651bf8822b3eb47dee3a6781b064277a /blaze822.c
parentc561aca4c9affa597d6a36d39d8a65c58ca78c87 (diff)
downloadmblaze-2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6.tar.gz
clean up whitespace
Diffstat (limited to 'blaze822.c')
-rw-r--r--blaze822.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/blaze822.c b/blaze822.c
index d15f4c9..1154e3d 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -19,19 +19,19 @@
static long
parse_posint(char **s, size_t minn, size_t maxn)
{
- long n;
- char *end;
+ long n;
+ char *end;
- errno = 0;
- n = strtol(*s, &end, 10);
- if (errno)
+ errno = 0;
+ n = strtol(*s, &end, 10);
+ if (errno)
return -1;
- if (n < (long)minn || n > (long)maxn) {
+ if (n < (long)minn || n > (long)maxn) {
errno = ERANGE;
return -1;
- }
- *s = end;
- return n;
+ }
+ *s = end;
+ return n;
}
time_t
@@ -60,7 +60,7 @@ blaze822_date(char *s) {
while (iswsp(*s))
s++;
- if (i3("jan")) tm.tm_mon = 0;
+ if (i3("jan")) tm.tm_mon = 0;
else if (i3("feb")) tm.tm_mon = 1;
else if (i3("mar")) tm.tm_mon = 2;
else if (i3("apr")) tm.tm_mon = 3;
@@ -111,12 +111,12 @@ blaze822_date(char *s) {
s++;
if ((c = parse_posint(&s, 0, 10000)) < 0) goto fail;
if (neg) {
- tm.tm_hour += c / 100;
- tm.tm_min += c % 100;
+ tm.tm_hour += c / 100;
+ tm.tm_min += c % 100;
} else {
- tm.tm_hour -= c / 100;
- tm.tm_min -= c % 100;
- }
+ tm.tm_hour -= c / 100;
+ tm.tm_min -= c % 100;
+ }
}
tm.tm_isdst = -1;
@@ -183,7 +183,7 @@ blaze822_addr(char *s, char **dispo, char **addro)
} else if (*s == '(') {
s++;
- if (!*addr) { // assume: user@host (name)
+ if (!*addr) { // assume: user@host (name)
*c-- = 0;
while (c > disp && iswsp(*c))
*c-- = 0;