socsvn commit: r253802 - in soc2013/dpl/head: contrib/bzip2 usr.bin/bzip2

dpl at FreeBSD.org dpl at FreeBSD.org
Mon Jul 1 19:43:20 UTC 2013


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
 


More information about the svn-soc-all mailing list