summaryrefslogtreecommitdiffstats
path: root/robots/score.c
diff options
context:
space:
mode:
Diffstat (limited to 'robots/score.c')
-rw-r--r--robots/score.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/robots/score.c b/robots/score.c
index f23bdc42..5ae9083a 100644
--- a/robots/score.c
+++ b/robots/score.c
@@ -1,4 +1,4 @@
-/* $NetBSD: score.c,v 1.22 2009/08/03 06:04:12 dholland Exp $ */
+/* $NetBSD: score.c,v 1.23 2009/08/12 08:30:55 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: score.c,v 1.22 2009/08/03 06:04:12 dholland Exp $");
+__RCSID("$NetBSD: score.c,v 1.23 2009/08/12 08:30:55 dholland Exp $");
#endif
#endif /* not lint */
@@ -57,6 +57,9 @@ static SCORE Top[MAXSCORES];
static uint32_t numscores, max_uid;
+static int cmp_sc(const void *, const void *);
+static void set_name(SCORE *);
+
/*
* read_score:
* Read the score file in MI format
@@ -189,7 +192,7 @@ score(int score_wfd)
lseek(inf, 0, SEEK_SET);
}
-void
+static void
set_name(SCORE *scp)
{
struct passwd *pp;
@@ -204,7 +207,7 @@ set_name(SCORE *scp)
* cmp_sc:
* Compare two scores.
*/
-int
+static int
cmp_sc(const void *s1, const void *s2)
{
return ((const SCORE *)s2)->s_score - ((const SCORE *)s1)->s_score;