Module Name:    src
Committed By:   dholland
Date:           Thu Aug 27 00:24:11 UTC 2009

Modified Files:
        src/games/quiz: quiz.c

Log Message:
Use standard C: 'unsigned', not 'u_int'


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/games/quiz/quiz.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/quiz/quiz.c
diff -u src/games/quiz/quiz.c:1.24 src/games/quiz/quiz.c:1.25
--- src/games/quiz/quiz.c:1.24	Wed Aug 12 08:26:49 2009
+++ src/games/quiz/quiz.c	Thu Aug 27 00:24:11 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: quiz.c,v 1.24 2009/08/12 08:26:49 dholland Exp $	*/
+/*	$NetBSD: quiz.c,v 1.25 2009/08/27 00:24:11 dholland Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)quiz.c	8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: quiz.c,v 1.24 2009/08/12 08:26:49 dholland Exp $");
+__RCSID("$NetBSD: quiz.c,v 1.25 2009/08/27 00:24:11 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -62,7 +62,7 @@
 
 static QE qlist;
 static int catone, cattwo, tflag;
-static u_int qsize;
+static unsigned qsize;
 
 int	 main(int, char *[]);
 static char *appdstr(char *, const char *, size_t);
@@ -71,7 +71,7 @@
 static void get_file(const char *);
 static const char *next_cat(const char *);
 static void quiz(void);
-static void score(u_int, u_int, u_int);
+static void score(unsigned, unsigned, unsigned);
 static void show_index(void);
 static void usage(void) __dead;
 
@@ -230,7 +230,7 @@
 	QE *qp;
 	int i;
 	size_t len;
-	u_int guesses, rights, wrongs;
+	unsigned guesses, rights, wrongs;
 	int next;
 	char *answer, *t, question[LINE_SZ];
 	const char *s;
@@ -360,7 +360,7 @@
 
 static void
 score(r, w, g)
-	u_int r, w, g;
+	unsigned r, w, g;
 {
 	(void)printf("Rights %d, wrongs %d,", r, w);
 	if (g)

Reply via email to