From owner-svn-src-all@FreeBSD.ORG Fri Feb 21 13:17:11 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EE4CF369; Fri, 21 Feb 2014 13:17:11 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BFE4E1B89; Fri, 21 Feb 2014 13:17:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1LDHBM1053426; Fri, 21 Feb 2014 13:17:11 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1LDHBF7053421; Fri, 21 Feb 2014 13:17:11 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201402211317.s1LDHBF7053421@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 21 Feb 2014 13:17:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262295 - head/contrib/dma X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2014 13:17:12 -0000 Author: bapt Date: Fri Feb 21 13:17:10 2014 New Revision: 262295 URL: http://svnweb.freebsd.org/changeset/base/262295 Log: Fix build with gcc 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 Fri Feb 21 12:17:27 2014 (r262294) +++ head/contrib/dma/conf.c Fri Feb 21 13:17:10 2014 (r262295) @@ -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, "|"); Modified: head/contrib/dma/dma.c ============================================================================== --- head/contrib/dma/dma.c Fri Feb 21 12:17:27 2014 (r262294) +++ head/contrib/dma/dma.c Fri Feb 21 13:17:10 2014 (r262295) @@ -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); Modified: head/contrib/dma/mail.c ============================================================================== --- head/contrib/dma/mail.c Fri Feb 21 12:17:27 2014 (r262294) +++ head/contrib/dma/mail.c Fri Feb 21 13:17:10 2014 (r262295) @@ -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);