diff options
author | obrien <obrien@FreeBSD.org> | 2003-05-02 07:08:52 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-05-02 07:08:52 +0000 |
commit | baba414b75b66029c8a7ea0b1e96e8573d6a4eb8 (patch) | |
tree | abb3d3759e978c24ea102938a441580cf2f22c46 | |
parent | 9680dcd33dcfffa4387c5b551235b8fae7abeb6c (diff) | |
download | FreeBSD-src-baba414b75b66029c8a7ea0b1e96e8573d6a4eb8.zip FreeBSD-src-baba414b75b66029c8a7ea0b1e96e8573d6a4eb8.tar.gz |
bufpos is used in size_t contexts, so make it one.
-rw-r--r-- | sbin/dmesg/dmesg.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c index 7f60d8b..ad24e16 100644 --- a/sbin/dmesg/dmesg.c +++ b/sbin/dmesg/dmesg.c @@ -31,6 +31,7 @@ * SUCH DAMAGE. */ +#if 0 #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1991, 1993\n\ @@ -38,12 +39,11 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -#if 0 static const char sccsid[] = "@(#)dmesg.c 8.1 (Berkeley) 6/5/93"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/msgbuf.h> @@ -82,8 +82,7 @@ main(int argc, char *argv[]) char buf[5]; int all = 0; int pri; - size_t buflen; - int bufpos; + size_t buflen, bufpos; (void) setlocale(LC_CTYPE, ""); memf = nlistf = NULL; |