mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
bufpos is used in size_t contexts, so make it one.
This commit is contained in:
parent
8e7d2436a1
commit
560bb4f8b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114515
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue