Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/gpioctl static + __dead
details: https://anonhg.NetBSD.org/src/rev/995cb131393b
branches: trunk
changeset: 769043:995cb131393b
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Aug 30 18:50:48 2011 +0000
description:
static + __dead
diffstat:
usr.sbin/gpioctl/gpioctl.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (37 lines):
diff -r 7aae6aac8c7f -r 995cb131393b usr.sbin/gpioctl/gpioctl.c
--- a/usr.sbin/gpioctl/gpioctl.c Tue Aug 30 18:30:13 2011 +0000
+++ b/usr.sbin/gpioctl/gpioctl.c Tue Aug 30 18:50:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gpioctl.c,v 1.11 2011/08/28 07:48:50 mbalmer Exp $ */
+/* $NetBSD: gpioctl.c,v 1.12 2011/08/30 18:50:48 joerg Exp $ */
/*
* Copyright (c) 2008, 2010 Marc Balmer <mbalmer%NetBSD.org@localhost>
@@ -36,9 +36,9 @@
#include <string.h>
#include <unistd.h>
-char *dev;
-int devfd = -1;
-int quiet = 0;
+static char *dev;
+static int devfd = -1;
+static int quiet = 0;
static void getinfo(void);
static void gpioread(int, char *);
@@ -48,12 +48,12 @@
static void gpiounset(int pin, char *name);
static void devattach(char *, int, uint32_t);
static void devdetach(char *);
-static void usage(void);
+__dead static void usage(void);
extern long long strtonum(const char *numstr, long long minval,
long long maxval, const char **errstrp);
-const struct bitstr {
+static const struct bitstr {
unsigned int mask;
const char *string;
} pinflags[] = {
Home |
Main Index |
Thread Index |
Old Index