summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smbmsg
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2004-05-17 19:19:08 +0000
committerjoerg <joerg@FreeBSD.org>2004-05-17 19:19:08 +0000
commit916d8239a865f7c5ba973870fde106e441a25f5b (patch)
tree9953ce2fdccdbe46c9177be18eacfbfd5ec60b84 /usr.sbin/smbmsg
parent54a0a97b3417f27d633ad44a756501c3e720a461 (diff)
downloadFreeBSD-src-916d8239a865f7c5ba973870fde106e441a25f5b.zip
FreeBSD-src-916d8239a865f7c5ba973870fde106e441a25f5b.tar.gz
Fix my own style(9) bugs:
. forward declare all static functions . add a couple of redundant parens in return statements where they've been missing . remove the space after exit since it's a function
Diffstat (limited to 'usr.sbin/smbmsg')
-rw-r--r--usr.sbin/smbmsg/smbmsg.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/smbmsg/smbmsg.c b/usr.sbin/smbmsg/smbmsg.c
index 6d1ca94..82f6c1c 100644
--- a/usr.sbin/smbmsg/smbmsg.c
+++ b/usr.sbin/smbmsg/smbmsg.c
@@ -71,6 +71,11 @@ static unsigned short oword, iword;
#define MIN_I2C_ADDR 16
#define MAX_I2C_ADDR 240
+static int do_io(void);
+static int getnum(const char *s);
+static void probe_i2c(void);
+static void usage(void);
+
static void
usage(void)
{
@@ -78,7 +83,7 @@ usage(void)
"usage: smbmsg [-f dev] -p\n"
" smbmsg [-f dev] -s slave [-F fmt] [-c cmd] [-w] "
"[-i incnt] [-o outcnt] [outdata ...]\n");
- exit (EX_USAGE);
+ exit(EX_USAGE);
}
static int
@@ -90,7 +95,7 @@ getnum(const char *s)
l = strtoul(s, &endp, 0);
if (*s != '\0' && *endp == '\0')
return (int)l;
- return -1;
+ return (-1);
}
static void
@@ -335,5 +340,5 @@ main(int argc, char **argv)
else if (i == -2)
errx(EX_USAGE, "Invalid option combination");
- return 0;
+ return (0);
}
OpenPOWER on IntegriCloud