From: dholland Date: Sat, 22 Mar 2014 23:39:04 +0000 (+0000) Subject: use size_t instead of int for a length X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/commitdiff_plain/eb5e62efedff35dc46cef0af9537156f47e6db62?hp=bd35ad093888ab3ff7c529269fe39e0017174a50 use size_t instead of int for a length --- diff --git a/boggle/boggle/bog.c b/boggle/boggle/bog.c index 6e3c24de..e24d9e23 100644 --- a/boggle/boggle/bog.c +++ b/boggle/boggle/bog.c @@ -1,4 +1,4 @@ -/* $NetBSD: bog.c,v 1.28 2012/10/13 20:12:18 dholland Exp $ */ +/* $NetBSD: bog.c,v 1.29 2014/03/22 23:39:04 dholland Exp $ */ /*- * Copyright (c) 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\ #if 0 static char sccsid[] = "@(#)bog.c 8.2 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: bog.c,v 1.28 2012/10/13 20:12:18 dholland Exp $"); +__RCSID("$NetBSD: bog.c,v 1.29 2014/03/22 23:39:04 dholland Exp $"); #endif #endif /* not lint */ @@ -377,7 +377,7 @@ playgame(void) else if (!validword(buf)) badword(); else { - int len; + size_t len; len = strlen(buf) + 1; if (npwords == MAXPWORDS - 1 ||