diff options
| author | joerg <joerg@NetBSD.org> | 2011-08-27 18:55:21 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2011-08-27 18:55:21 +0000 |
| commit | 92d4b008228c1e67fef5ec0307bb020b16f74e07 (patch) | |
| tree | 4e6b0c609356e34e05af0cf8679a749854f0ff10 /sbin/slattach | |
| parent | 933245420409c8e7c9b9456168c80bcb4fa91136 (diff) | |
static + __dead
Diffstat (limited to 'sbin/slattach')
| -rw-r--r-- | sbin/slattach/slattach.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c index f3b82573a8e..3126c860123 100644 --- a/sbin/slattach/slattach.c +++ b/sbin/slattach/slattach.c @@ -1,4 +1,4 @@ -/* $NetBSD: slattach.c,v 1.30 2008/07/20 01:20:23 lukem Exp $ */ +/* $NetBSD: slattach.c,v 1.31 2011/08/27 18:55:21 joerg Exp $ */ /* * Copyright (c) 1988, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\ #if 0 static char sccsid[] = "@(#)slattach.c 8.2 (Berkeley) 1/7/94"; #else -__RCSID("$NetBSD: slattach.c,v 1.30 2008/07/20 01:20:23 lukem Exp $"); +__RCSID("$NetBSD: slattach.c,v 1.31 2011/08/27 18:55:21 joerg Exp $"); #endif #endif /* not lint */ @@ -65,13 +65,13 @@ __RCSID("$NetBSD: slattach.c,v 1.30 2008/07/20 01:20:23 lukem Exp $"); #include <termios.h> #include <unistd.h> -int speed = 9600; -int slipdisc = SLIPDISC; +static int speed = 9600; +static int slipdisc = SLIPDISC; -char devicename[32]; +static char devicename[32]; -int ttydisc(char *); -void usage(void); +static int ttydisc(char *); +__dead static void usage(void); int main(int argc, char *argv[]) @@ -146,7 +146,7 @@ main(int argc, char *argv[]) sigsuspend(&nsigset); } -int +static int ttydisc(char *name) { if (strcmp(name, "slip") == 0) @@ -161,7 +161,7 @@ ttydisc(char *name) return -1; } -void +static void usage(void) { |
