summaryrefslogtreecommitdiffstats
path: root/netbsd
diff options
context:
space:
mode:
authorfraggerfox <santhosh.raju@gmail.com>2021-05-24 22:57:59 +0530
committerBenBE <BenBE@geshi.org>2021-06-26 12:18:37 +0200
commit58a895e54cf846b8dcbe63cdd929194e68a710ea (patch)
tree147915e1e77879854a95f6b791ae61b24d444aaf /netbsd
parent9de463e756963e4e0e6188602199904580bbdb16 (diff)
Fixes minor whitespace issues and re-arrange headers to conform to style guide.
Diffstat (limited to 'netbsd')
-rw-r--r--netbsd/NetBSDProcessList.c2
-rw-r--r--netbsd/NetBSDProcessList.h1
-rw-r--r--netbsd/Platform.c4
-rw-r--r--netbsd/Platform.h3
4 files changed, 6 insertions, 4 deletions
diff --git a/netbsd/NetBSDProcessList.c b/netbsd/NetBSDProcessList.c
index 6058fe80..c196f1ee 100644
--- a/netbsd/NetBSDProcessList.c
+++ b/netbsd/NetBSDProcessList.c
@@ -27,11 +27,11 @@ in the source distribution for its full text.
#include "CRT.h"
#include "Macros.h"
#include "Object.h"
-#include "netbsd/NetBSDProcess.h"
#include "Process.h"
#include "ProcessList.h"
#include "Settings.h"
#include "XUtils.h"
+#include "netbsd/NetBSDProcess.h"
static long fscale;
diff --git a/netbsd/NetBSDProcessList.h b/netbsd/NetBSDProcessList.h
index 11a8654c..ecb486f1 100644
--- a/netbsd/NetBSDProcessList.h
+++ b/netbsd/NetBSDProcessList.h
@@ -44,7 +44,6 @@ typedef struct NetBSDProcessList_ {
kvm_t* kd;
CPUData* cpus;
-
} NetBSDProcessList;
diff --git a/netbsd/Platform.c b/netbsd/Platform.c
index 5f2a434e..3f88d4f2 100644
--- a/netbsd/Platform.c
+++ b/netbsd/Platform.c
@@ -31,8 +31,6 @@ in the source distribution for its full text.
#include "Macros.h"
#include "MemoryMeter.h"
#include "Meter.h"
-#include "netbsd/NetBSDProcess.h"
-#include "netbsd/NetBSDProcessList.h"
#include "ProcessList.h"
#include "Settings.h"
#include "SignalsPanel.h"
@@ -41,6 +39,8 @@ in the source distribution for its full text.
#include "TasksMeter.h"
#include "UptimeMeter.h"
#include "XUtils.h"
+#include "netbsd/NetBSDProcess.h"
+#include "netbsd/NetBSDProcessList.h"
const ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };
diff --git a/netbsd/Platform.h b/netbsd/Platform.h
index 6f5157f8..320ca5bf 100644
--- a/netbsd/Platform.h
+++ b/netbsd/Platform.h
@@ -11,6 +11,9 @@ in the source distribution for its full text.
*/
#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <sys/time.h>
#include <sys/types.h>
#include "Action.h"

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