aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-10-11 17:45:20 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-10-11 17:45:20 +0000
commiteaccd9b323efabfe0273453250a49850175ce12e (patch)
tree2660f2de9c955f0f2553e9a5b744adf7ba538ce9
parent6854699543cc7b5e0aeea7428f0fa158cebd69bc (diff)
downloadsrc-eaccd9b323efabfe0273453250a49850175ce12e.tar.gz
src-eaccd9b323efabfe0273453250a49850175ce12e.zip
Fix build with gcc 4.2
Notes
Notes: svn path=/head/; revision=289144
-rw-r--r--contrib/dma/conf.c2
-rw-r--r--contrib/dma/dma.c2
-rw-r--r--contrib/dma/mail.c2
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 @@ skipopts:
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 @@ newaddr:
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);