Module Name: src
Committed By: lukem
Date: Tue Apr 14 07:59:17 UTC 2009
Modified Files:
src/usr.bin/write: term_chk.c
Log Message:
fix sign-compare issue
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/write/term_chk.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/write/term_chk.c
diff -u src/usr.bin/write/term_chk.c:1.7 src/usr.bin/write/term_chk.c:1.8
--- src/usr.bin/write/term_chk.c:1.7 Tue Nov 30 04:08:38 2004
+++ src/usr.bin/write/term_chk.c Tue Apr 14 07:59:17 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: term_chk.c,v 1.7 2004/11/30 04:08:38 christos Exp $ */
+/* $NetBSD: term_chk.c,v 1.8 2009/04/14 07:59:17 lukem Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: term_chk.c,v 1.7 2004/11/30 04:08:38 christos Exp $");
+__RCSID("$NetBSD: term_chk.c,v 1.8 2009/04/14 07:59:17 lukem Exp $");
#endif
#include <sys/types.h>
@@ -68,7 +68,7 @@
return -1;
}
i = snprintf(path, sizeof path, _PATH_DEV "%s", tty);
- if (i < 0 || i >= sizeof(path)) {
+ if (i < 0 || i >= (int)sizeof(path)) {
errno = ENOMEM;
return -1;
}