From cdd0b23af7a08347eb83484f5e589a49e814e0ef Mon Sep 17 00:00:00 2001 From: "Liam J. Foy" Date: Mon, 28 Feb 2005 19:42:12 +0000 Subject: [PATCH] - Static - Remove limits.h --- bin/ln/ln.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 6673800f36..0eed29eb6b 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1987, 1993, 1994 The Regents of the University of California. All rights reserved. * @(#)ln.c 8.2 (Berkeley) 3/31/94 * $FreeBSD: src/bin/ln/ln.c,v 1.15.2.4 2002/07/12 07:34:38 tjr Exp $ - * $DragonFly: src/bin/ln/ln.c,v 1.6 2005/02/28 19:26:20 liamfoy Exp $ + * $DragonFly: src/bin/ln/ln.c,v 1.7 2005/02/28 19:42:12 liamfoy Exp $ */ #include @@ -41,23 +41,22 @@ #include #include -#include #include #include #include #include -int fflag; /* Unlink existing files. */ -int hflag; /* Check new name for symlink first. */ -int iflag; /* Interactive mode. */ -int sflag; /* Symbolic, not hard, link. */ -int vflag; /* Verbose output. */ +static int fflag; /* Unlink existing files. */ +static int hflag; /* Check new name for symlink first. */ +static int iflag; /* Interactive mode. */ +static int sflag; /* Symbolic, not hard, link. */ +static int vflag; /* Verbose output. */ /* System link call. */ -int (*linkf)(const char *, const char *); -char linkch; +static int (*linkf)(const char *, const char *); +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[]) @@ -148,7 +147,7 @@ main(int argc, char *argv[]) exit(exitval); } -int +static int linkit(const char *target, const char *source, int isdir) { struct stat sb; @@ -228,7 +227,7 @@ linkit(const char *target, const char *source, int isdir) return (0); } -void +static void usage(void) { fprintf(stderr, "%s\n%s\n%s\n", -- 2.28.0