mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Add missing static keywords to lock(1)
This commit is contained in:
parent
7f3271b68c
commit
20a9b7ee4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227169
@ -72,17 +72,17 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
#define TIMEOUT 15
|
#define TIMEOUT 15
|
||||||
|
|
||||||
void quit(int);
|
static void quit(int);
|
||||||
void bye(int);
|
static void bye(int);
|
||||||
void hi(int);
|
static void hi(int);
|
||||||
static void usage(void);
|
static void usage(void);
|
||||||
|
|
||||||
struct timeval timeout;
|
static struct timeval timeout;
|
||||||
struct timeval zerotime;
|
static struct timeval zerotime;
|
||||||
struct termios tty, ntty;
|
static struct termios tty, ntty;
|
||||||
long nexttime; /* keep the timeout time */
|
static long nexttime; /* keep the timeout time */
|
||||||
int no_timeout; /* lock terminal forever */
|
static int no_timeout; /* lock terminal forever */
|
||||||
int vtyunlock; /* Unlock flag and code. */
|
static int vtyunlock; /* Unlock flag and code. */
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
int
|
int
|
||||||
@ -252,7 +252,7 @@ usage(void)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
hi(int signo __unused)
|
hi(int signo __unused)
|
||||||
{
|
{
|
||||||
struct timeval timval;
|
struct timeval timval;
|
||||||
@ -269,7 +269,7 @@ hi(int signo __unused)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
quit(int signo __unused)
|
quit(int signo __unused)
|
||||||
{
|
{
|
||||||
(void)putchar('\n');
|
(void)putchar('\n');
|
||||||
@ -279,7 +279,7 @@ quit(int signo __unused)
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
bye(int signo __unused)
|
bye(int signo __unused)
|
||||||
{
|
{
|
||||||
if (!no_timeout) {
|
if (!no_timeout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user