Drop tabs in source indentions

This commit is contained in:
Christian Göttsche 2020-10-20 13:14:32 +02:00 committed by cgzones
parent dea19b644f
commit f8208f2173
9 changed files with 16 additions and 17 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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) */

View File

@ -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_ {

View File

@ -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;
}

View File

@ -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_ {

View File

@ -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) {

View File

@ -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"

View File

@ -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);