aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2006-02-23 13:50:45 +0800
committerjasone <jasone@FreeBSD.org>2006-02-23 13:50:45 +0800
commitb30a7bafd3a5e7b81a7e2e3ea39b627c05226506 (patch)
treeeaf43139d7c188cbcf5c42d0bd9fcc1ccb465896 /sysutils
parente7ac67edb58034a958caac3690ac6ac88041b61a (diff)
downloadfreebsd-ports-graphics-b30a7bafd3a5e7b81a7e2e3ea39b627c05226506.tar.gz
freebsd-ports-graphics-b30a7bafd3a5e7b81a7e2e3ea39b627c05226506.tar.zst
freebsd-ports-graphics-b30a7bafd3a5e7b81a7e2e3ea39b627c05226506.zip
Add a missing #include, and fix a type.
Diffstat (limited to 'sysutils')
-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 860f7d04864..127832a2cde 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");