mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Fix build with gcc 4.2
This commit is contained in:
parent
6854699543
commit
eaccd9b323
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289144
@ -121,7 +121,7 @@ parse_authfile(const char *path)
|
|||||||
|
|
||||||
au = calloc(1, sizeof(*au));
|
au = calloc(1, sizeof(*au));
|
||||||
if (au == NULL)
|
if (au == NULL)
|
||||||
errlog(EX_OSERR, NULL);
|
errlog(EX_OSERR, "calloc()");
|
||||||
|
|
||||||
data = strdup(line);
|
data = strdup(line);
|
||||||
au->login = strsep(&data, "|");
|
au->login = strsep(&data, "|");
|
||||||
|
@ -596,7 +596,7 @@ main(int argc, char **argv)
|
|||||||
errlog(EX_SOFTWARE, "could not parse aliases file `%s'", config.aliases);
|
errlog(EX_SOFTWARE, "could not parse aliases file `%s'", config.aliases);
|
||||||
|
|
||||||
if ((sender = set_from(&queue, sender)) == NULL)
|
if ((sender = set_from(&queue, sender)) == NULL)
|
||||||
errlog(EX_SOFTWARE, NULL);
|
errlog(EX_SOFTWARE, "set_from()");
|
||||||
|
|
||||||
if (newspoolf(&queue) != 0)
|
if (newspoolf(&queue) != 0)
|
||||||
errlog(EX_CANTCREAT, "can not create temp file in `%s'", config.spooldir);
|
errlog(EX_CANTCREAT, "can not create temp file in `%s'", config.spooldir);
|
||||||
|
@ -333,7 +333,7 @@ parse_addrs(struct parse_state *ps, char *s, struct queue *queue)
|
|||||||
ps->pos = 0;
|
ps->pos = 0;
|
||||||
addr = strdup(ps->addr);
|
addr = strdup(ps->addr);
|
||||||
if (addr == NULL)
|
if (addr == NULL)
|
||||||
errlog(EX_SOFTWARE, NULL);
|
errlog(EX_SOFTWARE, "strdup");
|
||||||
|
|
||||||
if (add_recp(queue, addr, EXPAND_WILDCARD) != 0)
|
if (add_recp(queue, addr, EXPAND_WILDCARD) != 0)
|
||||||
errlogx(EX_DATAERR, "invalid recipient `%s'", addr);
|
errlogx(EX_DATAERR, "invalid recipient `%s'", addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user