Fix build with gcc 4.2
This commit is contained in:
parent
6854699543
commit
eaccd9b323
@ -121,7 +121,7 @@ parse_authfile(const char *path)
|
||||
|
||||
au = calloc(1, sizeof(*au));
|
||||
if (au == NULL)
|
||||
errlog(EX_OSERR, NULL);
|
||||
errlog(EX_OSERR, "calloc()");
|
||||
|
||||
data = strdup(line);
|
||||
au->login = strsep(&data, "|");
|
||||
|
@ -596,7 +596,7 @@ main(int argc, char **argv)
|
||||
errlog(EX_SOFTWARE, "could not parse aliases file `%s'", config.aliases);
|
||||
|
||||
if ((sender = set_from(&queue, sender)) == NULL)
|
||||
errlog(EX_SOFTWARE, NULL);
|
||||
errlog(EX_SOFTWARE, "set_from()");
|
||||
|
||||
if (newspoolf(&queue) != 0)
|
||||
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;
|
||||
addr = strdup(ps->addr);
|
||||
if (addr == NULL)
|
||||
errlog(EX_SOFTWARE, NULL);
|
||||
errlog(EX_SOFTWARE, "strdup");
|
||||
|
||||
if (add_recp(queue, addr, EXPAND_WILDCARD) != 0)
|
||||
errlogx(EX_DATAERR, "invalid recipient `%s'", addr);
|
||||
|
Loading…
Reference in New Issue
Block a user