static + __dead
This commit is contained in:
parent
8bdebf9d52
commit
bab034bac4
@ -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)
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user