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

@@ -21,7 +21,7 @@
#include <string.h>
#include <sys/stat.h>
#include <proc/namespace.h>
#include <proc/misc.h>
#include "proc/procps-private.h"
#define NSPATHLEN 64
@@ -81,7 +81,7 @@ PROCPS_EXPORT int procps_ns_get_id(const char *name)
*
* Find all namespaces for the given process.
* @pid: Process ID for required process
* @nsp: Pointer to the struct procps_namespaces
* @nsp: Pointer to the struct procps_ns
*
* Returns:
* 0 on success
@@ -89,7 +89,7 @@ PROCPS_EXPORT int procps_ns_get_id(const char *name)
*/
PROCPS_EXPORT int procps_ns_read_pid(
const int pid,
struct procps_namespaces *nsp)
struct procps_ns *nsp)
{
char path[NSPATHLEN+1];
struct stat st;