diff options
author | eadler <eadler@FreeBSD.org> | 2013-06-02 17:55:00 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-06-02 17:55:00 +0000 |
commit | 0bf6af7fdd74b2ed8486d193b0ffabf309f893cf (patch) | |
tree | e4edadd811b3c5968566c8fd44a3c56f9b3329e9 /bin/ln | |
parent | 3744954e30d6d19466b8d0368905fd160e5573c7 (diff) | |
download | FreeBSD-src-0bf6af7fdd74b2ed8486d193b0ffabf309f893cf.zip FreeBSD-src-0bf6af7fdd74b2ed8486d193b0ffabf309f893cf.tar.gz |
Add 'static' where able.
Diffstat (limited to 'bin/ln')
-rw-r--r-- | bin/ln/ln.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 4169e62..f50802a 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", |