summaryrefslogtreecommitdiffstats
path: root/usr.sbin/gpioctl
diff options
context:
space:
mode:
authormbalmer <mbalmer@openbsd.org>2008-11-26 15:02:43 +0000
committermbalmer <mbalmer@openbsd.org>2008-11-26 15:02:43 +0000
commitb48285970805de156c0086f0e737fda0cee3390a (patch)
tree888241f97f2bc344a4254e25b3d0f99e4ce311c2 /usr.sbin/gpioctl
parentDocument the new semnatics and ioctl(2)s of gpio(4). (diff)
downloadwireguard-openbsd-b48285970805de156c0086f0e737fda0cee3390a.tar.xz
wireguard-openbsd-b48285970805de156c0086f0e737fda0cee3390a.zip
Reorder variables, add my copyright.
Diffstat (limited to 'usr.sbin/gpioctl')
-rw-r--r--usr.sbin/gpioctl/gpioctl.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.sbin/gpioctl/gpioctl.c b/usr.sbin/gpioctl/gpioctl.c
index 490401be092..84cf6709665 100644
--- a/usr.sbin/gpioctl/gpioctl.c
+++ b/usr.sbin/gpioctl/gpioctl.c
@@ -1,5 +1,6 @@
-/* $OpenBSD: gpioctl.c,v 1.10 2008/11/26 14:56:10 mbalmer Exp $ */
+/* $OpenBSD: gpioctl.c,v 1.11 2008/11/26 15:02:43 mbalmer Exp $ */
/*
+ * Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -69,16 +70,13 @@ const struct bitstr {
int
main(int argc, char *argv[])
{
- int ch;
- const char *errstr;
const struct bitstr *bs;
- char *ep;
- int n, fl = 0, value = 0;
- u_int32_t ga_mask = 0, ga_offset = -1;
long lval;
+ u_int32_t ga_mask = 0;
+ int pin, ch, ga_offset = -1, n, fl = 0, value = 0;
+ const char *errstr;
+ char *ep, *nam = NULL;
char devn[32];
- int pin;
- char *nam = NULL;
while ((ch = getopt(argc, argv, "q")) != -1)
switch (ch) {