all: make buildable again for new 'misc.h' header file

With the 4 header files removed in the previous patch,
this commit just changes all those obsolete references
to that new consolidated 'misc.h' header file instead.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2021-01-19 00:00:00 -06:00
committed by Craig Small
parent 1fdd7d4966
commit 423297c9db
23 changed files with 32 additions and 46 deletions

View File

@@ -42,7 +42,7 @@
#include "xalloc.h"
#include "rpmatch.h"
#include <proc/namespace.h>
#include <proc/misc.h>
#include <proc/pids.h>
#define DEFAULT_NICE 4
@@ -62,7 +62,7 @@ static const char **cmds;
static int *pids;
static char **namespaces;
static int ns_pid;
static struct procps_namespaces match_namespaces;
static struct procps_ns match_namespaces;
static int ns_flags = 0x3f;
#define ENLIST(thing,addme) do{ \
@@ -149,7 +149,7 @@ static int match_strlist(const char *value, const int len, const char **list)
static int match_ns(const int pid)
{
struct procps_namespaces proc_ns;
struct procps_ns proc_ns;
int found = 1;
int i;