Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2010 00:45:18 GMT
From:      Benjamin Fiedler <bfiedler@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 180076 for review
Message-ID:  <201006220045.o5M0jIox006273@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@180076?ac=10

Change 180076 by bfiedler@freebsd-7803 on 2010/06/22 00:44:34

	Fix compile warnings

Affected files ...

.. //depot/projects/soc2010/bsdtextproc/sdiff/common.h#3 edit
.. //depot/projects/soc2010/bsdtextproc/sdiff/edit.c#2 edit

Differences ...

==== //depot/projects/soc2010/bsdtextproc/sdiff/common.h#3 (text+ko) ====

@@ -6,7 +6,7 @@
  */
 
 #ifdef __FreeBSD__
-#include "gnuc.h"
+#define __dead
 #endif
 
 __dead void cleanup(const char *);

==== //depot/projects/soc2010/bsdtextproc/sdiff/edit.c#2 (text+ko) ====

@@ -146,7 +146,7 @@
 
 		len = strlen(text);
 		if ((nwritten = write(fd, text, len)) == -1 ||
-		    nwritten != len) {
+		    (size_t)nwritten != len) {
 			warn("error writing to temp file");
 			cleanup(filename);
 		}



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