Constify and staticify for lint.
This commit is contained in:
parent
0399c2578e
commit
ba8acd9de2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105395
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user