-/* $NetBSD: quiz.c,v 1.26 2009/08/27 00:31:12 dholland Exp $ */
+/* $NetBSD: quiz.c,v 1.27 2014/03/23 00:07:15 dholland Exp $ */
/*-
* Copyright (c) 1991, 1993
#if 0
static char sccsid[] = "@(#)quiz.c 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: quiz.c,v 1.26 2009/08/27 00:31:12 dholland Exp $");
+__RCSID("$NetBSD: quiz.c,v 1.27 2014/03/23 00:07:15 dholland Exp $");
#endif
#endif /* not lint */
int i;
size_t len;
unsigned guesses, rights, wrongs;
- int next;
+ unsigned next, j;
char *answer, *t, question[LINE_SZ];
const char *s;
break;
next = random() % qsize;
qp = qlist.q_next;
- for (i = 0; i < next; i++)
+ for (j = 0; j < next; j++)
qp = qp->q_next;
while (qp && qp->q_answered)
qp = qp->q_next;