From 916d8239a865f7c5ba973870fde106e441a25f5b Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 17 May 2004 19:19:08 +0000 Subject: 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 --- usr.sbin/smbmsg/smbmsg.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'usr.sbin/smbmsg') 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); } -- cgit v1.1