aboutsummaryrefslogtreecommitdiff
path: root/sbin/dmesg
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2003-05-02 07:08:52 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2003-05-02 07:08:52 +0000
commit560bb4f8b6d099fc24ece8e55c894c0e6c4684a1 (patch)
treeabb3d3759e978c24ea102938a441580cf2f22c46 /sbin/dmesg
parent8e7d2436a13d52f24f4bf190cfbfb72896958103 (diff)
downloadsrc-560bb4f8b6d099fc24ece8e55c894c0e6c4684a1.tar.gz
src-560bb4f8b6d099fc24ece8e55c894c0e6c4684a1.zip
bufpos is used in size_t contexts, so make it one.
Notes
Notes: svn path=/head/; revision=114515
Diffstat (limited to 'sbin/dmesg')
-rw-r--r--sbin/dmesg/dmesg.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c
index 7f60d8bb3db6..ad24e16bfdda 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;