aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-10-18 14:45:00 +0000
committerMark Murray <markm@FreeBSD.org>2002-10-18 14:45:00 +0000
commitba8acd9de24d019cf973b91721a4620f73c364b0 (patch)
tree49e04b9932fa5fb719528d91af8916cbf2b39472 /bin
parent0399c2578e19d1cfa5654dbdb332bbd9cbea4cb9 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/cp/cp.c4
-rw-r--r--bin/cp/extern.h4
-rw-r--r--bin/cp/utils.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index 57c3e4d8c649..bcba8d979827 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -252,7 +252,7 @@ main(int argc, char *argv[])
exit (copy(argv, type, fts_options));
}
-int
+static int
copy(char *argv[], enum op type, int fts_options)
{
struct stat to_stat;
@@ -484,7 +484,7 @@ copy(char *argv[], enum op type, int fts_options)
* parent directory, whereas directories tend not to be. Copying the
* files first reduces seeking.
*/
-int
+static int
mastercmp(const FTSENT * const *a, const FTSENT * const *b)
{
int a_info, b_info;
diff --git a/bin/cp/extern.h b/bin/cp/extern.h
index 72484f250cb2..dfb737d2edb6 100644
--- a/bin/cp/extern.h
+++ b/bin/cp/extern.h
@@ -45,8 +45,8 @@ extern int fflag, iflag, nflag, pflag, vflag;
__BEGIN_DECLS
int copy_fifo(struct stat *, int);
-int copy_file(FTSENT *, int);
-int copy_link(FTSENT *, int);
+int copy_file(const FTSENT *, int);
+int copy_link(const FTSENT *, int);
int copy_special(struct stat *, int);
int setfile(struct stat *, int);
void usage(void);
diff --git a/bin/cp/utils.c b/bin/cp/utils.c
index ab92dfc8d7c8..793019520f5a 100644
--- a/bin/cp/utils.c
+++ b/bin/cp/utils.c
@@ -58,7 +58,7 @@ __FBSDID("$FreeBSD$");
#include "extern.h"
int
-copy_file(FTSENT *entp, int dne)
+copy_file(const FTSENT *entp, int dne)
{
static char buf[MAXBSIZE];
struct stat *fs;
@@ -193,7 +193,7 @@ copy_file(FTSENT *entp, int dne)
}
int
-copy_link(FTSENT *p, int exists)
+copy_link(const FTSENT *p, int exists)
{
int len;
char llink[PATH_MAX];