diff options
author | jasone <jasone@FreeBSD.org> | 2006-02-23 13:50:45 +0800 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2006-02-23 13:50:45 +0800 |
commit | b30a7bafd3a5e7b81a7e2e3ea39b627c05226506 (patch) | |
tree | eaf43139d7c188cbcf5c42d0bd9fcc1ccb465896 /sysutils | |
parent | e7ac67edb58034a958caac3690ac6ac88041b61a (diff) | |
download | freebsd-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.c | 4 |
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"); |