From owner-svn-src-head@FreeBSD.ORG Sun Nov 6 08:15:49 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 28D391066035; Sun, 6 Nov 2011 08:15:48 +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 796508FC20; Sun, 6 Nov 2011 08:15:48 +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 pA68Fm5W008542; Sun, 6 Nov 2011 08:15:48 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA68Fm4s008540; Sun, 6 Nov 2011 08:15:48 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111060815.pA68Fm4s008540@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 08:15:48 +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: r227169 - head/usr.bin/lock 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:15:49 -0000 Author: ed Date: Sun Nov 6 08:15:48 2011 New Revision: 227169 URL: http://svn.freebsd.org/changeset/base/227169 Log: Add missing static keywords to lock(1) Modified: head/usr.bin/lock/lock.c Modified: head/usr.bin/lock/lock.c ============================================================================== --- head/usr.bin/lock/lock.c Sun Nov 6 08:15:41 2011 (r227168) +++ head/usr.bin/lock/lock.c Sun Nov 6 08:15:48 2011 (r227169) @@ -72,17 +72,17 @@ __FBSDID("$FreeBSD$"); #define TIMEOUT 15 -void quit(int); -void bye(int); -void hi(int); +static void quit(int); +static void bye(int); +static void hi(int); static void usage(void); -struct timeval timeout; -struct timeval zerotime; -struct termios tty, ntty; -long nexttime; /* keep the timeout time */ -int no_timeout; /* lock terminal forever */ -int vtyunlock; /* Unlock flag and code. */ +static struct timeval timeout; +static struct timeval zerotime; +static struct termios tty, ntty; +static long nexttime; /* keep the timeout time */ +static int no_timeout; /* lock terminal forever */ +static int vtyunlock; /* Unlock flag and code. */ /*ARGSUSED*/ int @@ -252,7 +252,7 @@ usage(void) exit(1); } -void +static void hi(int signo __unused) { struct timeval timval; @@ -269,7 +269,7 @@ hi(int signo __unused) } } -void +static void quit(int signo __unused) { (void)putchar('\n'); @@ -279,7 +279,7 @@ quit(int signo __unused) exit(0); } -void +static void bye(int signo __unused) { if (!no_timeout) {