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
This commit is contained in:
Joerg Wunsch 2004-05-17 19:19:08 +00:00
parent b3dd2b7bfc
commit 2c2d85914f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129353

View File

@ -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);
}