]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Fix build with gcc 4.2
authorbapt <bapt@FreeBSD.org>
Sun, 11 Oct 2015 17:45:20 +0000 (17:45 +0000)
committerbapt <bapt@FreeBSD.org>
Sun, 11 Oct 2015 17:45:20 +0000 (17:45 +0000)
contrib/dma/conf.c
contrib/dma/dma.c
contrib/dma/mail.c

index 3e3c7d3d8bd2af783d196ee850451bcb2f5f09df..b8a6a2e2cbd75cd1b9f867f580ba7e28a7da510f 100644 (file)
@@ -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, "|");
index 0d1dba2af32de9be8f0be1f1ea953b595b38e109..684ab059111d21ac24ee8092989f7605f9b5ffc7 100644 (file)
@@ -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);
index a6d11fcae685a9dd1440fd4782de4a5628826cee..842072c55242938bfc6171757141c7ff027df126 100644 (file)
@@ -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);