From owner-svn-src-head@FreeBSD.ORG Sun Nov 6 08:17:30 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79D201066175; Sun, 6 Nov 2011 08:17:30 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1B3C28FC08; Sun, 6 Nov 2011 08:17:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA68HT7Q009235; Sun, 6 Nov 2011 08:17:30 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA68HTM4009233; Sun, 6 Nov 2011 08:17:29 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111060817.pA68HTM4009233@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 08:17:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227186 - head/usr.bin/tcopy X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 08:17:30 -0000 Author: ed Date: Sun Nov 6 08:17:29 2011 New Revision: 227186 URL: http://svn.freebsd.org/changeset/base/227186 Log: Add missing static keywords to tcopy(1) Modified: head/usr.bin/tcopy/tcopy.c Modified: head/usr.bin/tcopy/tcopy.c ============================================================================== --- head/usr.bin/tcopy/tcopy.c Sun Nov 6 08:17:23 2011 (r227185) +++ head/usr.bin/tcopy/tcopy.c Sun Nov 6 08:17:29 2011 (r227186) @@ -60,16 +60,16 @@ static const char sccsid[] = "@(#)tcopy. #define MAXREC (64 * 1024) #define NOCOUNT (-2) -int filen, guesslen, maxblk = MAXREC; -u_int64_t lastrec, record, size, tsize; -FILE *msg; +static int filen, guesslen, maxblk = MAXREC; +static uint64_t lastrec, record, size, tsize; +static FILE *msg; -void *getspace(int); -void intr(int); +static void *getspace(int); +static void intr(int); static void usage(void) __dead2; -void verify(int, int, char *); -void writeop(int, int); -void rewind_tape(int); +static void verify(int, int, char *); +static void writeop(int, int); +static void rewind_tape(int); int main(int argc, char *argv[]) @@ -223,7 +223,7 @@ r1: guesslen = 0; exit(0); } -void +static void verify(int inp, int outp, char *outb) { int eot, inmaxblk, inn, outmaxblk, outn; @@ -275,7 +275,7 @@ r2: if (inn != outn) { exit(1); } -void +static void intr(int signo __unused) { if (record) { @@ -289,7 +289,7 @@ intr(int signo __unused) exit(1); } -void * +static void * getspace(int blk) { void *bp; @@ -299,7 +299,7 @@ getspace(int blk) return (bp); } -void +static void writeop(int fd, int type) { struct mtop op; @@ -317,7 +317,7 @@ usage(void) exit(1); } -void +static void rewind_tape(int fd) { struct stat sp;