Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2013 19:43:20 GMT
From:      dpl@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r253802 - in soc2013/dpl/head: contrib/bzip2 usr.bin/bzip2
Message-ID:  <201307011943.r61JhKD3028016@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307011943.r61JhKD3028016>