pidof: remove unrequired includes

pidof was including readproc.h only because one length was used
and it didn't include some system headers.
This commit is contained in:
Craig Small 2015-09-26 14:37:38 +10:00
parent 492a2c64db
commit a8c0627415

View File

@ -19,13 +19,15 @@
*/
#include <stdio.h>
#include <unistd.h>
#include <getopt.h>
#include <sys/types.h>
#include "c.h"
#include "fileutils.h"
#include "nls.h"
#include "xalloc.h"
#include "proc/readproc.h"
//#include "proc/readproc.h"
#include <proc/pids.h>
#include "proc/version.h" /* procps_version */
@ -102,7 +104,7 @@ static char *get_basename (char *filename)
static char *pid_link (pid_t pid, const char *base_name)
{
char link [PROCPATHLEN];
char link [1000];
char *result;
int path_alloc_size;
int len;