From 08aa7c869f11e7d5f5a9b7e4a5b2a3ce250c05b4 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sun, 2 Jun 2013 17:55:00 +0000 Subject: [PATCH] Add 'static' where able. --- bin/ln/ln.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 4169e6229c98..f50802a9f941 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -65,8 +65,8 @@ static int wflag; /* Warn if symlink target does not * exist, and -f is not enabled. */ static char linkch; -int linkit(const char *, const char *, int); -void usage(void); +static int linkit(const char *, const char *, int); +static void usage(void); int main(int argc, char *argv[]) @@ -219,7 +219,7 @@ samedirent(const char *path1, const char *path2) return sb1.st_dev == sb2.st_dev && sb1.st_ino == sb2.st_ino; } -int +static int linkit(const char *source, const char *target, int isdir) { struct stat sb; @@ -347,7 +347,7 @@ linkit(const char *source, const char *target, int isdir) return (0); } -void +static void usage(void) { (void)fprintf(stderr, "%s\n%s\n%s\n",