1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Staticify internal functions and make usage() a prototype.

This commit is contained in:
Xin LI 2009-12-13 03:34:19 +00:00
parent 965e331f6a
commit 820aa90f57
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200465

View File

@ -86,16 +86,16 @@ int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, verbose;
mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
const char *suffix = BACKUP_SUFFIX; const char *suffix = BACKUP_SUFFIX;
void copy(int, const char *, int, const char *, off_t); static void copy(int, const char *, int, const char *, off_t);
int compare(int, const char *, size_t, int, const char *, size_t); static int compare(int, const char *, size_t, int, const char *, size_t);
int create_newfile(const char *, int, struct stat *); static int create_newfile(const char *, int, struct stat *);
int create_tempfile(const char *, char *, size_t); static int create_tempfile(const char *, char *, size_t);
void install(const char *, const char *, u_long, u_int); static void install(const char *, const char *, u_long, u_int);
void install_dir(char *); static void install_dir(char *);
u_long numeric_id(const char *, const char *); static u_long numeric_id(const char *, const char *);
void strip(const char *); static void strip(const char *);
int trymmap(int); static int trymmap(int);
void usage(void); static void usage(void);
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
@ -771,7 +771,7 @@ install_dir(char *path)
* print a usage message and die * print a usage message and die
*/ */
void void
usage() usage(void)
{ {
(void)fprintf(stderr, (void)fprintf(stderr,
"usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n" "usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n"