From b36d6eb3e1336ae20138508af858d2761e358f0c Mon Sep 17 00:00:00 2001 From: delphij Date: Sat, 19 Jul 2008 00:13:26 +0000 Subject: Staticify symbols that will not be used in other places. --- bin/mv/mv.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'bin') diff --git a/bin/mv/mv.c b/bin/mv/mv.c index 05e6314..22bdec1 100644 --- a/bin/mv/mv.c +++ b/bin/mv/mv.c @@ -70,10 +70,10 @@ __FBSDID("$FreeBSD$"); int fflg, iflg, nflg, vflg; -int copy(char *, char *); -int do_move(char *, char *); -int fastcopy(char *, char *, struct stat *); -void usage(void); +static int copy(const char *, const char *); +static int do_move(const char *, const char *); +static int fastcopy(const char *, const char *, struct stat *); +static void usage(void); int main(int argc, char *argv[]) @@ -154,8 +154,8 @@ main(int argc, char *argv[]) exit(rval); } -int -do_move(char *from, char *to) +static int +do_move(const char *from, const char *to) { struct stat sb; int ask, ch, first; @@ -254,8 +254,8 @@ do_move(char *from, char *to) fastcopy(from, to, &sb) : copy(from, to)); } -int -fastcopy(char *from, char *to, struct stat *sbp) +static int +fastcopy(const char *from, const char *to, struct stat *sbp) { struct timeval tval[2]; static u_int blen; @@ -360,8 +360,8 @@ err: if (unlink(to)) return (0); } -int -copy(char *from, char *to) +static int +copy(const char *from, const char *to) { struct stat sb; int pid, status; @@ -438,7 +438,7 @@ copy(char *from, char *to) return (0); } -void +static void usage(void) { -- cgit v1.1