From 15f9b5684546e986919e2f2d40f4c926662054a4 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 6 Nov 2011 08:19:07 +0000 Subject: [PATCH] Add missing static keywords to xinstall(1) --- usr.bin/xinstall/xinstall.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index b1a565ce0a8b..a920f8504575 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -73,13 +73,14 @@ __FBSDID("$FreeBSD$"); #define NOCHANGEBITS (UF_IMMUTABLE | UF_APPEND | SF_IMMUTABLE | SF_APPEND) #define BACKUP_SUFFIX ".old" -struct passwd *pp; -struct group *gp; -gid_t gid; -uid_t uid; -int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, verbose; -mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; -const char *suffix = BACKUP_SUFFIX; +static struct passwd *pp; +static struct group *gp; +static gid_t gid; +static uid_t uid; +static int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, + verbose; +static mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; +static const char *suffix = BACKUP_SUFFIX; static int compare(int, const char *, size_t, int, const char *, size_t); static void copy(int, const char *, int, const char *, off_t);