diff options
author | delphij <delphij@FreeBSD.org> | 2005-01-13 03:59:44 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2005-01-13 03:59:44 +0000 |
commit | c3e405fd2484498597f1e363ded0d3399967fbf4 (patch) | |
tree | 7b4bf24928ccc2f71ff719698762b45801073bdb /usr.sbin/vidcontrol/decode.c | |
parent | 0361a4b24792458f0b4b25a44a58b45052057aab (diff) | |
download | FreeBSD-src-c3e405fd2484498597f1e363ded0d3399967fbf4.zip FreeBSD-src-c3e405fd2484498597f1e363ded0d3399967fbf4.tar.gz |
WANRS=6 cleanup for vidcontrol(1):
- Use foo(void) instead of foo().
- Use static where applicable.
- Apply more const's when passing parameters
- signed/unsigned madness
- Avoid namespace collision by adding underscores.
- For 64-bit architectures, use %zx instead of %x
when necessary.
- When storing constants, use const instead of
variable.
- Bump WARNS?= from 2 to 6
Diffstat (limited to 'usr.sbin/vidcontrol/decode.c')
-rw-r--r-- | usr.sbin/vidcontrol/decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/vidcontrol/decode.c b/usr.sbin/vidcontrol/decode.c index fddc3d5..27691d2 100644 --- a/usr.sbin/vidcontrol/decode.c +++ b/usr.sbin/vidcontrol/decode.c @@ -48,7 +48,7 @@ int decode(FILE *fd, char *buffer, int len) if (!fgets(temp, sizeof(temp), fd)) return(0); } while (strncmp(temp, "begin ", 6)); - sscanf(temp, "begin %o %s", &n, temp); + sscanf(temp, "begin %o %s", (unsigned *)&n, temp); bp = buffer; for (;;) { if (!fgets(p = temp, sizeof(temp), fd)) |