From owner-svn-soc-all@FreeBSD.ORG Mon Jul 1 19:43:20 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E28CE6F9 for ; Mon, 1 Jul 2013 19:43:20 +0000 (UTC) (envelope-from dpl@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) by mx1.freebsd.org (Postfix) with ESMTP id D45141DE9 for ; Mon, 1 Jul 2013 19:43:20 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r61JhKKq028019 for ; Mon, 1 Jul 2013 19:43:20 GMT (envelope-from dpl@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r61JhKD3028016 for svn-soc-all@FreeBSD.org; Mon, 1 Jul 2013 19:43:20 GMT (envelope-from dpl@FreeBSD.org) Date: Mon, 1 Jul 2013 19:43:20 GMT Message-Id: <201307011943.r61JhKD3028016@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to dpl@FreeBSD.org using -f From: dpl@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r253802 - in soc2013/dpl/head: contrib/bzip2 usr.bin/bzip2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2013 19:43:20 -0000 Author: dpl Date: Mon Jul 1 19:43:20 2013 New Revision: 253802 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=253802 Log: Cleant some warnings. Modified: soc2013/dpl/head/contrib/bzip2/bzip2.c soc2013/dpl/head/usr.bin/bzip2/Makefile Modified: soc2013/dpl/head/contrib/bzip2/bzip2.c ============================================================================== --- soc2013/dpl/head/contrib/bzip2/bzip2.c Mon Jul 1 18:58:59 2013 (r253801) +++ soc2013/dpl/head/contrib/bzip2/bzip2.c Mon Jul 1 19:43:20 2013 (r253802) @@ -236,7 +236,7 @@ struct msghdr msg; struct cmsghdr *cmsg; struct iovec io[1]; - char buf = { "!" }; + char buf[1] = { "!" }; int ret; io[0].iov_base = buf; @@ -270,7 +270,7 @@ int fd; struct msghdr msg; struct cmsghdr cmsg; - char buf = { "!" }; + char buf[1] = { "!" }; struct iovec io[1]; io[0].iov_base = buf; @@ -1473,7 +1473,7 @@ if (sendfd(sv[1], infd) < 0){ fprintf ( stderr, "%s: Couldn't send infd: %s.\n", progName, strerror(errno) ); - if (signal(forkpid, SIGTERM) < 0) + if (kill(forkpid, SIGTERM) < 0) printf("Couldn't kill the child process, please press ^C\n"); wait(NULL); setExit(1); Modified: soc2013/dpl/head/usr.bin/bzip2/Makefile ============================================================================== --- soc2013/dpl/head/usr.bin/bzip2/Makefile Mon Jul 1 18:58:59 2013 (r253801) +++ soc2013/dpl/head/usr.bin/bzip2/Makefile Mon Jul 1 19:43:20 2013 (r253802) @@ -7,8 +7,7 @@ CFLAGS+= -D_FILE_OFFSET_BITS=64 #TODO: Delete this. CFLAGS+= -fno-color-diagnostics -CFLAGS+= -Wall -CFLAGS+= -g +CFLAGS+= -Wall -Werror -g WARNS?= 3