diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-11-26 15:02:44 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-11-26 15:02:44 +0000 |
commit | ff8453f39497a20ebe795d300c9e7c0a55e25dd2 (patch) | |
tree | 1d133d6b8177332b11f9ca56d87fbdaa33bbf88d | |
parent | 996014ed3fa6e916753648e9cf356ea98c6eb72e (diff) |
Reorder variables, add my copyright.
-rw-r--r-- | usr.sbin/gpioctl/gpioctl.c | 14 |
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) { |