diff options
author | Jason Evans <jasone@FreeBSD.org> | 2006-02-23 05:50:45 +0000 |
---|---|---|
committer | Jason Evans <jasone@FreeBSD.org> | 2006-02-23 05:50:45 +0000 |
commit | 4ab88cae65328f27bf112bb685bb730015e10ca6 (patch) | |
tree | 300352adcd52f82a1bcde873faf8c23b4e224c33 | |
parent | Update 0.10 --> 0.11 (diff) |
Add a missing #include, and fix a type.
Notes
Notes:
svn path=/head/; revision=156737
-rw-r--r-- | sysutils/procmap/files/procmap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysutils/procmap/files/procmap.c b/sysutils/procmap/files/procmap.c index 860f7d04864b..127832a2cde1 100644 --- a/sysutils/procmap/files/procmap.c +++ b/sysutils/procmap/files/procmap.c @@ -36,6 +36,7 @@ ****************************************************************************/ #include <stdio.h> +#include <stdlib.h> #include <fcntl.h> #include <errno.h> @@ -48,7 +49,8 @@ main(int argc, char **argv) { char *buf; char path[MAXPATH] = "/proc/"; - int mfd, bytes, size = MINBUF; + int mfd, bytes; + size_t size = MINBUF; if (argc != 2) { fprintf(stderr, "usage: procmap {<pid> | curproc}\n"); |