svn commit: r289144 - head/contrib/dma

Baptiste Daroussin bapt at FreeBSD.org
Sun Oct 11 17:45:22 UTC 2015


Author: bapt
Date: Sun Oct 11 17:45:20 2015
New Revision: 289144
URL: https://svnweb.freebsd.org/changeset/base/289144

Log:
  Fix build with gcc 4.2

Modified:
  head/contrib/dma/conf.c
  head/contrib/dma/dma.c
  head/contrib/dma/mail.c

Modified: head/contrib/dma/conf.c
==============================================================================
--- head/contrib/dma/conf.c	Sun Oct 11 17:37:21 2015	(r289143)
+++ head/contrib/dma/conf.c	Sun Oct 11 17:45:20 2015	(r289144)
@@ -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, "|");

Modified: head/contrib/dma/dma.c
==============================================================================
--- head/contrib/dma/dma.c	Sun Oct 11 17:37:21 2015	(r289143)
+++ head/contrib/dma/dma.c	Sun Oct 11 17:45:20 2015	(r289144)
@@ -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);

Modified: head/contrib/dma/mail.c
==============================================================================
--- head/contrib/dma/mail.c	Sun Oct 11 17:37:21 2015	(r289143)
+++ head/contrib/dma/mail.c	Sun Oct 11 17:45:20 2015	(r289144)
@@ -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);


More information about the svn-src-all mailing list