diff options
author | bapt <bapt@FreeBSD.org> | 2014-02-21 13:17:10 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-02-21 13:17:10 +0000 |
commit | e5f274b4b00c086dc655b84c003d4ac095851d99 (patch) | |
tree | a3d9f834fade3efbf70aba8591034739f306e070 /contrib/dma | |
parent | f9cf015025b71b151100d7dd914fd1024fe4c8f0 (diff) | |
download | FreeBSD-src-e5f274b4b00c086dc655b84c003d4ac095851d99.zip FreeBSD-src-e5f274b4b00c086dc655b84c003d4ac095851d99.tar.gz |
Fix build with gcc
Diffstat (limited to 'contrib/dma')
-rw-r--r-- | contrib/dma/conf.c | 2 | ||||
-rw-r--r-- | contrib/dma/dma.c | 6 | ||||
-rw-r--r-- | contrib/dma/mail.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/contrib/dma/conf.c b/contrib/dma/conf.c index 919ab7c..86d72f7 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(1, NULL); + errlog(1, "calloc failed"); data = strdup(line); au->login = strsep(&data, "|"); diff --git a/contrib/dma/dma.c b/contrib/dma/dma.c index e6462f2..a3a62c9 100644 --- a/contrib/dma/dma.c +++ b/contrib/dma/dma.c @@ -464,7 +464,7 @@ main(int argc, char **argv) goto skipopts; } else if (strcmp(argv[0], "newaliases") == 0) { logident_base = "dma"; - setlogident(NULL); + setlogident("%s", logident_base); if (read_aliases() != 0) errx(1, "could not parse aliases file `%s'", config.aliases); @@ -563,7 +563,7 @@ main(int argc, char **argv) skipopts: if (logident_base == NULL) logident_base = "dma"; - setlogident(NULL); + setlogident("%s", logident_base); act.sa_handler = sighup_handler; act.sa_flags = 0; @@ -595,7 +595,7 @@ skipopts: errlog(1, "could not parse aliases file `%s'", config.aliases); if ((sender = set_from(&queue, sender)) == NULL) - errlog(1, NULL); + errlog(1, "set_from failed"); if (newspoolf(&queue) != 0) errlog(1, "can not create temp file in `%s'", config.spooldir); diff --git a/contrib/dma/mail.c b/contrib/dma/mail.c index 9cbde41..f899d4b 100644 --- a/contrib/dma/mail.c +++ b/contrib/dma/mail.c @@ -332,7 +332,7 @@ newaddr: ps->pos = 0; addr = strdup(ps->addr); if (addr == NULL) - errlog(1, NULL); + errlog(1, "strdup failed"); if (add_recp(queue, addr, EXPAND_WILDCARD) != 0) errlogx(1, "invalid recipient `%s'", addr); |