summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate/bigram
diff options
context:
space:
mode:
authorgavin <gavin@FreeBSD.org>2010-06-28 12:04:55 +0000
committergavin <gavin@FreeBSD.org>2010-06-28 12:04:55 +0000
commit27450f928887021c02a2b656ffc2d6ae0c43737b (patch)
treed1cce6095506f37863ffa73807ca3e0a9fb18a86 /usr.bin/locate/bigram
parentb1c566e1ce4d8cc7ebf01274e6cbc4f7816a5c33 (diff)
downloadFreeBSD-src-27450f928887021c02a2b656ffc2d6ae0c43737b.zip
FreeBSD-src-27450f928887021c02a2b656ffc2d6ae0c43737b.tar.gz
Various changes to make locate compilable with WARNS=6. Note that there
is still one issue on FreeBSD/arm (signed vs unsigned char) which prevents actually bumping this to WARNS=6 - I'm still considering the correct solution to this issue. Tested by: make universe
Diffstat (limited to 'usr.bin/locate/bigram')
-rw-r--r--usr.bin/locate/bigram/locate.bigram.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/locate/bigram/locate.bigram.c b/usr.bin/locate/bigram/locate.bigram.c
index 208824f..6fa2d31 100644
--- a/usr.bin/locate/bigram/locate.bigram.c
+++ b/usr.bin/locate/bigram/locate.bigram.c
@@ -37,6 +37,7 @@
* $FreeBSD$
*/
+#if 0
#ifndef lint
static char copyright[] =
"@(#) Copyright (c) 1989, 1993\n\
@@ -46,6 +47,7 @@ static char copyright[] =
#ifndef lint
static char sccsid[] = "@(#)locate.bigram.c 8.1 (Berkeley) 6/6/93";
#endif /* not lint */
+#endif
/*
* bigram < sorted_file_names | sort -nr |
@@ -67,9 +69,9 @@ u_int bigram[UCHAR_MAX + 1][UCHAR_MAX + 1];
int
main(void)
{
- register u_char *cp;
- register u_char *oldpath = buf1, *path = buf2;
- register u_int i, j;
+ u_char *cp;
+ u_char *oldpath = buf1, *path = buf2;
+ u_int i, j;
while (fgets(path, sizeof(buf2), stdin) != NULL) {
OpenPOWER on IntegriCloud