summaryrefslogtreecommitdiffstats
path: root/src/fid.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-05-10 16:53:12 +0200
committerJim Meyering <meyering@redhat.com>2008-05-17 12:53:29 +0200
commitbaa6f970bd311b25498bedb6d3554eb0719d2daf (patch)
treebf5870b3fd2922ba4652800d65ab9ecd76b3e866 /src/fid.c
parent3abe5c7f968cb2905ecf2c0920f283e5c60016d2 (diff)
downloadidutils-baa6f970bd311b25498bedb6d3554eb0719d2daf.tar.gz
idutils-baa6f970bd311b25498bedb6d3554eb0719d2daf.tar.bz2
idutils-baa6f970bd311b25498bedb6d3554eb0719d2daf.zip
make functions static
Diffstat (limited to 'src/fid.c')
-rw-r--r--src/fid.c16
1 files changed, 8 insertions, 8 deletions
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 <gkm@gnu.ai.mit.edu>
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);