summaryrefslogtreecommitdiff
path: root/sysutils/procmap/files/procmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/procmap/files/procmap.c')
-rw-r--r--sysutils/procmap/files/procmap.c4
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");