summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-20 13:14:32 +0200
committercgzones <cgzones@googlemail.com>2020-10-20 21:43:36 +0200
commitf8208f21730b21f284d9608a5b39f8ac1d15199b (patch)
tree534bfe8cdbe5763683b0e539ba1c4ab013845418
parentdea19b644f463c8409569957d008fb9d86b487e9 (diff)
Drop tabs in source indentions
-rw-r--r--InfoScreen.c2
-rw-r--r--Macros.h6
-rw-r--r--darwin/DarwinProcessList.c6
-rw-r--r--dragonflybsd/DragonFlyBSDProcessList.h2
-rw-r--r--dragonflybsd/Platform.c4
-rw-r--r--freebsd/FreeBSDProcessList.h2
-rw-r--r--solaris/SolarisProcessList.c4
-rw-r--r--solaris/SolarisProcessList.h4
-rw-r--r--zfs/openzfs_sysctl.c3
9 files changed, 16 insertions, 17 deletions
diff --git a/InfoScreen.c b/InfoScreen.c
index 0c666234..7f4baa72 100644
--- a/InfoScreen.c
+++ b/InfoScreen.c
@@ -110,7 +110,7 @@ void InfoScreen_run(InfoScreen* this) {
} else if (mevent.y == LINES - 1) {
ch = IncSet_synthesizeEvent(this->inc, mevent.x);
}
- }
+ }
}
if (this->inc->active) {
diff --git a/Macros.h b/Macros.h
index 2f92acb1..1064dadb 100644
--- a/Macros.h
+++ b/Macros.h
@@ -4,15 +4,15 @@
#include <assert.h> // IWYU pragma: keep
#ifndef MINIMUM
-#define MINIMUM(a, b) ((a) < (b) ? (a) : (b))
+#define MINIMUM(a, b) ((a) < (b) ? (a) : (b))
#endif
#ifndef MAXIMUM
-#define MAXIMUM(a, b) ((a) > (b) ? (a) : (b))
+#define MAXIMUM(a, b) ((a) > (b) ? (a) : (b))
#endif
#ifndef CLAMP
-#define CLAMP(x, low, high) (assert((low) <= (high)), ((x) > (high)) ? (high) : MAXIMUM(x, low))
+#define CLAMP(x, low, high) (assert((low) <= (high)), ((x) > (high)) ? (high) : MAXIMUM(x, low))
#endif
#ifndef ARRAYSIZE
diff --git a/darwin/DarwinProcessList.c b/darwin/DarwinProcessList.c
index f6f08b50..2c9f533f 100644
--- a/darwin/DarwinProcessList.c
+++ b/darwin/DarwinProcessList.c
@@ -146,9 +146,9 @@ void ProcessList_delete(ProcessList* this) {
void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
DarwinProcessList *dpl = (DarwinProcessList *)super;
- bool preExisting = true;
- struct kinfo_proc *ps;
- size_t count;
+ bool preExisting = true;
+ struct kinfo_proc *ps;
+ size_t count;
DarwinProcess *proc;
/* Update the global data (CPU times and VM stats) */
diff --git a/dragonflybsd/DragonFlyBSDProcessList.h b/dragonflybsd/DragonFlyBSDProcessList.h
index 47531297..0d0a128f 100644
--- a/dragonflybsd/DragonFlyBSDProcessList.h
+++ b/dragonflybsd/DragonFlyBSDProcessList.h
@@ -19,7 +19,7 @@ in the source distribution for its full text.
#include "Hashtable.h"
#include "DragonFlyBSDProcess.h"
-#define JAIL_ERRMSGLEN 1024
+#define JAIL_ERRMSGLEN 1024
extern char jail_errmsg[JAIL_ERRMSGLEN];
typedef struct CPUData_ {
diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c
index eb172513..ce558899 100644
--- a/dragonflybsd/Platform.c
+++ b/dragonflybsd/Platform.c
@@ -202,12 +202,12 @@ void Platform_setSwapValues(Meter* this) {
void Platform_setTasksValues(Meter* this) {
// TODO
- (void)this; // prevent unused warning
+ (void)this; // prevent unused warning
}
char* Platform_getProcessEnv(pid_t pid) {
// TODO
- (void)pid; // prevent unused warning
+ (void)pid; // prevent unused warning
return NULL;
}
diff --git a/freebsd/FreeBSDProcessList.h b/freebsd/FreeBSDProcessList.h
index c5866334..60d23f8d 100644
--- a/freebsd/FreeBSDProcessList.h
+++ b/freebsd/FreeBSDProcessList.h
@@ -21,7 +21,7 @@ in the source distribution for its full text.
#include "zfs/ZfsArcStats.h"
-#define JAIL_ERRMSGLEN 1024
+#define JAIL_ERRMSGLEN 1024
extern char jail_errmsg[JAIL_ERRMSGLEN];
typedef struct CPUData_ {
diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c
index eed4b89d..85fc955b 100644
--- a/solaris/SolarisProcessList.c
+++ b/solaris/SolarisProcessList.c
@@ -151,8 +151,8 @@ static inline void SolarisProcessList_scanMemoryInfo(ProcessList* pl) {
// Part 1 - physical memory
if (spl->kd != NULL && meminfo == NULL) {
- // Look up the kstat chain just one, it never changes
- meminfo = kstat_lookup(spl->kd,"unix",0,"system_pages");
+ // Look up the kstat chain just one, it never changes
+ meminfo = kstat_lookup(spl->kd,"unix",0,"system_pages");
}
if (meminfo != NULL) { ksrphyserr = kstat_read(spl->kd,meminfo,NULL); }
if (ksrphyserr != -1) {
diff --git a/solaris/SolarisProcessList.h b/solaris/SolarisProcessList.h
index a138c3bf..1e6e5b8a 100644
--- a/solaris/SolarisProcessList.h
+++ b/solaris/SolarisProcessList.h
@@ -10,8 +10,8 @@ in the source distribution for its full text.
#define MAXCMDLINE 255
-#define GZONE "global "
-#define UZONE "unknown "
+#define GZONE "global "
+#define UZONE "unknown "
#include "zfs/ZfsArcStats.h"
diff --git a/zfs/openzfs_sysctl.c b/zfs/openzfs_sysctl.c
index 876bf5c8..3f8f2c25 100644
--- a/zfs/openzfs_sysctl.c
+++ b/zfs/openzfs_sysctl.c
@@ -32,8 +32,7 @@ void openzfs_sysctl_init(ZfsArcStats *stats) {
unsigned long long int arcSize;
len = sizeof(arcSize);
- if (sysctlbyname("kstat.zfs.misc.arcstats.size", &arcSize, &len,
- NULL, 0) == 0 && arcSize != 0) {
+ if (sysctlbyname("kstat.zfs.misc.arcstats.size", &arcSize, &len, NULL, 0) == 0 && arcSize != 0) {
stats->enabled = 1;
len = 5; sysctlnametomib("kstat.zfs.misc.arcstats.size", MIB_kstat_zfs_misc_arcstats_size, &len);

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