Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/slattach static + __dead



details:   https://anonhg.NetBSD.org/src/rev/57d3f667aeab
branches:  trunk
changeset: 768826:57d3f667aeab
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Aug 27 18:55:21 2011 +0000

description:
static + __dead

diffstat:

 sbin/slattach/slattach.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (55 lines):

diff -r 350121611094 -r 57d3f667aeab sbin/slattach/slattach.c
--- a/sbin/slattach/slattach.c  Sat Aug 27 18:54:39 2011 +0000
+++ b/sbin/slattach/slattach.c  Sat Aug 27 18:55:21 2011 +0000
@@ -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 @@
 #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 @@
 #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 @@
                sigsuspend(&nsigset);
 }
 
-int
+static int
 ttydisc(char *name)
 {
        if (strcmp(name, "slip") == 0)
@@ -161,7 +161,7 @@
        return -1;
 }
 
-void
+static void
 usage(void)
 {
 



Home | Main Index | Thread Index | Old Index