summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-08-24 20:23:03 +0200
committerChristian Göttsche <cgzones@googlemail.com>2021-08-24 20:23:03 +0200
commit0679e9f45e8e5524702b0cb0a2a8cfdcdb31b372 (patch)
tree0902be228eab568ea4fb4dbef584b2d66e6348bb
parentec2307688e14ccd7d63257db94de8b78e998f6ab (diff)
Unsupported: update platform
-rw-r--r--unsupported/Platform.c5
-rw-r--r--unsupported/Platform.h2
-rw-r--r--unsupported/UnsupportedProcessList.c2
-rw-r--r--unsupported/UnsupportedProcessList.h2
4 files changed, 2 insertions, 9 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 0f897406..6fbe518d 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -115,11 +115,6 @@ void Platform_setSwapValues(Meter* this) {
(void) this;
}
-bool Process_isThread(const Process* this) {
- (void) this;
- return false;
-}
-
char* Platform_getProcessEnv(pid_t pid) {
(void) pid;
return NULL;
diff --git a/unsupported/Platform.h b/unsupported/Platform.h
index c1591de1..9ce2c492 100644
--- a/unsupported/Platform.h
+++ b/unsupported/Platform.h
@@ -45,8 +45,6 @@ void Platform_setMemoryValues(Meter* this);
void Platform_setSwapValues(Meter* this);
-bool Process_isThread(const Process* this);
-
char* Platform_getProcessEnv(pid_t pid);
char* Platform_getInodeFilename(pid_t pid, ino_t inode);
diff --git a/unsupported/UnsupportedProcessList.c b/unsupported/UnsupportedProcessList.c
index bed9ca96..0486e49f 100644
--- a/unsupported/UnsupportedProcessList.c
+++ b/unsupported/UnsupportedProcessList.c
@@ -52,7 +52,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
Process_updateExe(proc, "/path/to/executable");
if (proc->settings->flags & PROCESS_FLAG_CWD) {
- proc->procCwd = "/current/working/directory";
+ free_and_xStrdup(&proc->procCwd, "/current/working/directory");
}
proc->updated = true;
diff --git a/unsupported/UnsupportedProcessList.h b/unsupported/UnsupportedProcessList.h
index 764a1924..08dae0c7 100644
--- a/unsupported/UnsupportedProcessList.h
+++ b/unsupported/UnsupportedProcessList.h
@@ -10,7 +10,7 @@ in the source distribution for its full text.
#include "ProcessList.h"
-ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* pidMatchList, uid_t userId);
+ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* dynamicColumns, Hashtable* pidMatchList, uid_t userId);
void ProcessList_delete(ProcessList* this);

© 2014-2024 Faster IT GmbH | imprint | privacy policy