summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/makemap.c
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2009-08-08 00:02:22 +0000
committergilles <gilles@openbsd.org>2009-08-08 00:02:22 +0000
commit4a09a488211d10b2b89e523ca10e07c7c848c35f (patch)
tree3abc894f0224821086df10219a87d3ec8caa9c2a /usr.sbin/smtpd/makemap.c
parent- specifically match carp+([0-9]):, not just carp*:. avoids spurious (diff)
downloadwireguard-openbsd-4a09a488211d10b2b89e523ca10e07c7c848c35f.tar.xz
wireguard-openbsd-4a09a488211d10b2b89e523ca10e07c7c848c35f.zip
import some changes from portable smtpd to reduce the delta between both.
this commit contains mostly missing casts and cosmethic changes, do not expect to build this anywhere but on OpenBSD, it does not contain any of the portable glue.
Diffstat (limited to 'usr.sbin/smtpd/makemap.c')
-rw-r--r--usr.sbin/smtpd/makemap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/makemap.c b/usr.sbin/smtpd/makemap.c
index 81bd15943ad..bb940aff167 100644
--- a/usr.sbin/smtpd/makemap.c
+++ b/usr.sbin/smtpd/makemap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makemap.c,v 1.19 2009/07/28 20:51:50 gilles Exp $ */
+/* $OpenBSD: makemap.c,v 1.20 2009/08/08 00:02:22 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -225,7 +225,7 @@ parse_entry(char *line, size_t len, size_t lineno)
char *valp;
keyp = line;
- while (isspace(*keyp))
+ while (isspace((int)*keyp))
keyp++;
if (*keyp == '\0' || *keyp == '#')
return 1;
@@ -294,14 +294,14 @@ make_aliases(DBT *val, char *text)
while ((subrcpt = strsep(&text, ",")) != NULL) {
/* subrcpt: strip initial whitespace. */
- while (isspace(*subrcpt))
+ while (isspace((int)*subrcpt))
++subrcpt;
if (*subrcpt == '\0')
goto error;
/* subrcpt: strip trailing whitespace. */
endp = subrcpt + strlen(subrcpt) - 1;
- while (subrcpt < endp && isspace(*endp))
+ while (subrcpt < endp && isspace((int)*endp))
*endp-- = '\0';
if (! alias_parse(&a, subrcpt))