From eaccd9b323efabfe0273453250a49850175ce12e Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 11 Oct 2015 17:45:20 +0000 Subject: [PATCH] Fix build with gcc 4.2 --- contrib/dma/conf.c | 2 +- contrib/dma/dma.c | 2 +- contrib/dma/mail.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/dma/conf.c b/contrib/dma/conf.c index 3e3c7d3d8bd2..b8a6a2e2cbd7 100644 --- a/contrib/dma/conf.c +++ b/contrib/dma/conf.c @@ -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, "|"); diff --git a/contrib/dma/dma.c b/contrib/dma/dma.c index 0d1dba2af32d..684ab059111d 100644 --- a/contrib/dma/dma.c +++ b/contrib/dma/dma.c @@ -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); diff --git a/contrib/dma/mail.c b/contrib/dma/mail.c index a6d11fcae685..842072c55242 100644 --- a/contrib/dma/mail.c +++ b/contrib/dma/mail.c @@ -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);