Add a missing #include, and fix a type.

This commit is contained in:
Jason Evans 2006-02-23 05:50:45 +00:00
parent 494f29a6cb
commit 4ab88cae65
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156737

View file

@ -36,6 +36,7 @@
****************************************************************************/ ****************************************************************************/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
@ -48,7 +49,8 @@ main(int argc, char **argv)
{ {
char *buf; char *buf;
char path[MAXPATH] = "/proc/"; char path[MAXPATH] = "/proc/";
int mfd, bytes, size = MINBUF; int mfd, bytes;
size_t size = MINBUF;
if (argc != 2) { if (argc != 2) {
fprintf(stderr, "usage: procmap {<pid> | curproc}\n"); fprintf(stderr, "usage: procmap {<pid> | curproc}\n");