Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/btattach Mark types as static and usage as dead.



details:   https://anonhg.NetBSD.org/src/rev/1255abfa5c85
branches:  trunk
changeset: 768843:1255abfa5c85
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Aug 27 22:17:53 2011 +0000

description:
Mark types as static and usage as dead.

diffstat:

 usr.sbin/btattach/btattach.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 79dc1935d183 -r 1255abfa5c85 usr.sbin/btattach/btattach.c
--- a/usr.sbin/btattach/btattach.c      Sat Aug 27 21:43:06 2011 +0000
+++ b/usr.sbin/btattach/btattach.c      Sat Aug 27 22:17:53 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: btattach.c,v 1.11 2010/03/09 02:01:51 kiyohara Exp $   */
+/*     $NetBSD: btattach.c,v 1.12 2011/08/27 22:17:53 joerg Exp $      */
 
 /*-
  * Copyright (c) 2008 Iain Hibbert
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008 Iain Hibbert.  All rights reserved.");
-__RCSID("$NetBSD: btattach.c,v 1.11 2010/03/09 02:01:51 kiyohara Exp $");
+__RCSID("$NetBSD: btattach.c,v 1.12 2011/08/27 22:17:53 joerg Exp $");
 
 #include <sys/ioctl.h>
 #include <sys/param.h>
@@ -47,13 +47,13 @@
 #include "btattach.h"
 
 static void sighandler(int);
-static void usage(void);
+__dead static void usage(void);
 static void test(const char *, tcflag_t, tcflag_t);
 
 static int sigcount = 0;       /* signals received */
 static int opt_debug = 0;      /* global? */
 
-const struct devtype types[] = {
+static const struct devtype types[] = {
     {
        .name = "bcm2035",
        .line = "btuart",



Home | Main Index | Thread Index | Old Index