From baa6f970bd311b25498bedb6d3554eb0719d2daf Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 10 May 2008 16:53:12 +0200 Subject: make functions static --- src/fid.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/fid.c') diff --git a/src/fid.c b/src/fid.c index 9ef2b2f..1b160f4 100644 --- a/src/fid.c +++ b/src/fid.c @@ -1,5 +1,5 @@ /* fid.c -- list all tokens in the given file(s) - Copyright (C) 1986, 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1986, 1995, 1996, 2008 Free Software Foundation, Inc. Written by Greg McGary This program is free software; you can redistribute it and/or modify @@ -32,10 +32,10 @@ #include "idfile.h" #include "iduglobal.h" -int get_file_index (char *file_name); -int is_hit (unsigned char const *hits, int file_number); -int is_hit_1 (unsigned char const **hits, int level, int file_number); -void skip_hits (unsigned char const **hits, int level); +static int get_file_index (char *file_name); +static int is_hit (unsigned char const *hits, int file_number); +static int is_hit_1 (unsigned char const **hits, int level, int file_number); +static void skip_hits (unsigned char const **hits, int level); void usage (void); struct idhead idh; @@ -205,7 +205,7 @@ main (int argc, char **argv) return 0; } -int +static int get_file_index (char *file_name) { struct file_link **members; @@ -250,13 +250,13 @@ get_file_index (char *file_name) return idx; } -int +static int is_hit (unsigned char const *hits, int file_number) { return is_hit_1 (&hits, tree8_levels, file_number); } -int +static int is_hit_1 (unsigned char const **hits, int level, int file_number) { int file_hit = 1 << ((file_number >> (3 * --level)) & 7); -- cgit v1.2.3