summaryrefslogtreecommitdiffstats
path: root/bin/mv
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2008-07-19 00:13:26 +0000
committerdelphij <delphij@FreeBSD.org>2008-07-19 00:13:26 +0000
commitb36d6eb3e1336ae20138508af858d2761e358f0c (patch)
treea70971fbd86fb6d4e48df5b711c959db135b4b1a /bin/mv
parentde5d1b9a37a315c0a2e979012ae089225c9701f5 (diff)
downloadFreeBSD-src-b36d6eb3e1336ae20138508af858d2761e358f0c.zip
FreeBSD-src-b36d6eb3e1336ae20138508af858d2761e358f0c.tar.gz
Staticify symbols that will not be used in other
places.
Diffstat (limited to 'bin/mv')
-rw-r--r--bin/mv/mv.c22
1 files changed, 11 insertions, 11 deletions
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)
{
OpenPOWER on IntegriCloud