diff options
| author | Xin LI <delphij@FreeBSD.org> | 2008-07-19 00:13:26 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2008-07-19 00:13:26 +0000 |
| commit | 95aaf2e8a4edfa0ed59254cf3a156be61c05d60a (patch) | |
| tree | a70971fbd86fb6d4e48df5b711c959db135b4b1a | |
| parent | fffc0a1e59ad02d1057d2b56384ba600be9eb2f5 (diff) | |
Notes
| -rw-r--r-- | bin/mv/mv.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c index 05e63144ae56..22bdec19a457 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) { |
