mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04: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
1 changed files with 3 additions and 1 deletions
|
@ -36,6 +36,7 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
@ -48,7 +49,8 @@ main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *buf;
|
char *buf;
|
||||||
char path[MAXPATH] = "/proc/";
|
char path[MAXPATH] = "/proc/";
|
||||||
int mfd, bytes, size = MINBUF;
|
int mfd, bytes;
|
||||||
|
size_t size = MINBUF;
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
fprintf(stderr, "usage: procmap {<pid> | curproc}\n");
|
fprintf(stderr, "usage: procmap {<pid> | curproc}\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue