Module Name:    src
Committed By:   lukem
Date:           Mon Apr 13 07:18:38 UTC 2009

Modified Files:
        src/usr.bin/sdiff: edit.c

Log Message:
fix -Wsign-compare issue


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/sdiff/edit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/sdiff/edit.c
diff -u src/usr.bin/sdiff/edit.c:1.1 src/usr.bin/sdiff/edit.c:1.2
--- src/usr.bin/sdiff/edit.c:1.1	Sun Feb 18 22:13:42 2007
+++ src/usr.bin/sdiff/edit.c	Mon Apr 13 07:18:38 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: edit.c,v 1.1 2007/02/18 22:13:42 rmind Exp $	*/
+/*	$NetBSD: edit.c,v 1.2 2009/04/13 07:18:38 lukem Exp $	*/
 /*	$OpenBSD: edit.c,v 1.14 2006/05/25 03:20:32 ray Exp $ */
 
 /*
@@ -132,8 +132,7 @@
 		size_t len;
 
 		len = strlen(text);
-		if ((nwritten = write(fd, text, len)) == -1 ||
-		    nwritten != len) {
+		if ((size_t)write(fd, text, len) != len) {
 			warn("error writing to temp file");
 			cleanup(filename);
 		}

Reply via email to