summaryrefslogtreecommitdiffstats
path: root/pig
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>1999-09-18 19:38:46 +0000
committerjsm <jsm@NetBSD.org>1999-09-18 19:38:46 +0000
commit623e5e8eddc42ee4e3cff7c418dc2d3d4e96193f (patch)
tree75e04a7aee754535f179cbf6b43570d46e5e75e7 /pig
parentfa213838b361bf110cedaa5fd78622fe38c911e2 (diff)
downloadbsdgames-darwin-623e5e8eddc42ee4e3cff7c418dc2d3d4e96193f.tar.gz
bsdgames-darwin-623e5e8eddc42ee4e3cff7c418dc2d3d4e96193f.tar.zst
bsdgames-darwin-623e5e8eddc42ee4e3cff7c418dc2d3d4e96193f.zip
Fix -Wsign-compare warnings.
Diffstat (limited to 'pig')
-rw-r--r--pig/pig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pig/pig.c b/pig/pig.c
index 028fe59b..a779ebf0 100644
--- a/pig/pig.c
+++ b/pig/pig.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pig.c,v 1.7 1998/09/13 15:27:29 hubertf Exp $ */
+/* $NetBSD: pig.c,v 1.8 1999/09/18 19:38:53 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\
#if 0
static char sccsid[] = "@(#)pig.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: pig.c,v 1.7 1998/09/13 15:27:29 hubertf Exp $");
+__RCSID("$NetBSD: pig.c,v 1.8 1999/09/18 19:38:53 jsm Exp $");
#endif
#endif /* not lint */
@@ -80,7 +80,7 @@ main(argc, argv)
for (len = 0; (ch = getchar()) != EOF;) {
if (isalpha(ch)) {
- if (len >= sizeof(buf))
+ if ((size_t)len >= sizeof(buf))
errx(1, "ate too much!");
buf[len++] = ch;
continue;