mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add a missing #include, and fix a type.
This commit is contained in:
parent
494f29a6cb
commit
4ab88cae65
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156737
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user