From a8c0627415ace4fa635f5cedb5d6ebc36414c6c3 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Sat, 26 Sep 2015 14:37:38 +1000 Subject: [PATCH] pidof: remove unrequired includes pidof was including readproc.h only because one length was used and it didn't include some system headers. --- pidof.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pidof.c b/pidof.c index a2a314cd..b26b8df6 100644 --- a/pidof.c +++ b/pidof.c @@ -19,13 +19,15 @@ */ #include +#include #include +#include #include "c.h" #include "fileutils.h" #include "nls.h" #include "xalloc.h" -#include "proc/readproc.h" +//#include "proc/readproc.h" #include #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; -- 2.40.0