From 1c5b628a54e2ce988cfa739620f7e3be89d17d0c Mon Sep 17 00:00:00 2001 From: Chris Dunlop Date: Tue, 13 Dec 2011 11:16:29 +1100 Subject: [PATCH] Code cleanup Make local functions static Signed-off-by: Chris Dunlop --- hashlink.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hashlink.c b/hashlink.c index 263f6e3..fab92f8 100644 --- a/hashlink.c +++ b/hashlink.c @@ -24,7 +24,7 @@ extern char *link_by_hash_dir; #ifdef HAVE_LINK -char *make_hash_name(struct file_struct *file) +static char *make_hash_name(struct file_struct *file) { char hash[(MAX_DIGEST_LEN * 2) + 2], *dst = hash; uchar *src = (uchar*)F_SUM(file); @@ -47,7 +47,7 @@ char *make_hash_name(struct file_struct *file) } -void kill_hashfile(struct hashfile_struct *hashfile) +static void kill_hashfile(struct hashfile_struct *hashfile) { if (!hashfile) return; @@ -57,7 +57,7 @@ void kill_hashfile(struct hashfile_struct *hashfile) } -void kill_hashfiles(struct hashfile_struct *hashfiles) +static void kill_hashfiles(struct hashfile_struct *hashfiles) { struct hashfile_struct *iter, *next; if ((iter = hashfiles) != NULL) { @@ -70,7 +70,7 @@ void kill_hashfiles(struct hashfile_struct *hashfiles) } -struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr) +static struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr) { DIR *d; struct dirent *di; @@ -132,7 +132,7 @@ struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr) } -struct hashfile_struct *compare_hashfiles(int fd,struct hashfile_struct *files) +static struct hashfile_struct *compare_hashfiles(int fd,struct hashfile_struct *files) { int amt, hamt; char buffer[BUFSIZ], cmpbuffer[BUFSIZ]; -- 1.7.0.4