fix -Wsign-compare issue

This commit is contained in:
lukem 2009-04-13 07:18:38 +00:00
parent 6c108bbd74
commit 62a63750ae
1 changed files with 2 additions and 3 deletions

View File

@ -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 @@ RIGHT:
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);
}