summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-07-14 19:24:18 +0200
committerBenBE <BenBE@geshi.org>2021-07-15 06:57:24 +0200
commit976c6123f41492aaf613b9d172eef1842fb7b0a3 (patch)
treec5d2cc5276cd909348a41214320d305eb955fe57 /linux
parent68edf924349e10ed6a144d4d6f1d0ddcdfeb6d43 (diff)
Pointer indication aligned to typename
Diffstat (limited to 'linux')
-rw-r--r--linux/HugePageMeter.c2
-rw-r--r--linux/LinuxProcessList.c10
-rw-r--r--linux/Platform.c4
-rw-r--r--linux/Platform.h4
4 files changed, 10 insertions, 10 deletions
diff --git a/linux/HugePageMeter.c b/linux/HugePageMeter.c
index cb7d9f4d..9a309460 100644
--- a/linux/HugePageMeter.c
+++ b/linux/HugePageMeter.c
@@ -20,7 +20,7 @@ in the source distribution for its full text.
#include "linux/LinuxProcessList.h"
-static const char *HugePageMeter_active_labels[4] = { NULL, NULL, NULL, NULL };
+static const char* HugePageMeter_active_labels[4] = { NULL, NULL, NULL, NULL };
static const int HugePageMeter_attributes[] = {
HUGEPAGE_1,
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index ed189423..406216f6 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -459,7 +459,7 @@ typedef struct LibraryData_ {
bool exec;
} LibraryData;
-static inline uint64_t fast_strtoull_dec(char **str, int maxlen) {
+static inline uint64_t fast_strtoull_dec(char** str, int maxlen) {
register uint64_t result = 0;
if (!maxlen)
@@ -474,7 +474,7 @@ static inline uint64_t fast_strtoull_dec(char **str, int maxlen) {
return result;
}
-static inline uint64_t fast_strtoull_hex(char **str, int maxlen) {
+static inline uint64_t fast_strtoull_hex(char** str, int maxlen) {
register uint64_t result = 0;
register int nibble, letter;
const long valid_mask = 0x03FF007E;
@@ -508,8 +508,8 @@ static void LinuxProcessList_calcLibSize_helper(ATTR_UNUSED ht_key_t key, void*
if (!value)
return;
- const LibraryData* v = (const LibraryData *)value;
- uint64_t* d = (uint64_t *)data;
+ const LibraryData* v = (const LibraryData*)value;
+ uint64_t* d = (uint64_t*)data;
if (!v->exec)
return;
@@ -543,7 +543,7 @@ static void LinuxProcessList_readMaps(LinuxProcess* process, openat_arg_t procFd
continue;
// Parse format: "%Lx-%Lx %4s %x %2x:%2x %Ld"
- char *readptr = buffer;
+ char* readptr = buffer;
map_start = fast_strtoull_hex(&readptr, 16);
if ('-' != *readptr++)
diff --git a/linux/Platform.c b/linux/Platform.c
index a888dace..9bf495bb 100644
--- a/linux/Platform.c
+++ b/linux/Platform.c
@@ -374,8 +374,8 @@ char* Platform_getProcessEnv(pid_t pid) {
*/
char* Platform_getInodeFilename(pid_t pid, ino_t inode) {
struct stat sb;
- const struct dirent *de;
- DIR *dirp;
+ const struct dirent* de;
+ DIR* dirp;
ssize_t len;
int fd;
diff --git a/linux/Platform.h b/linux/Platform.h
index 794d7921..9729efca 100644
--- a/linux/Platform.h
+++ b/linux/Platform.h
@@ -70,13 +70,13 @@ char* Platform_getInodeFilename(pid_t pid, ino_t inode);
FileLocks_ProcessData* Platform_getProcessLocks(pid_t pid);
-void Platform_getPressureStall(const char *file, bool some, double* ten, double* sixty, double* threehundred);
+void Platform_getPressureStall(const char* file, bool some, double* ten, double* sixty, double* threehundred);
bool Platform_getDiskIO(DiskIOData* data);
bool Platform_getNetworkIO(NetworkIOData* data);
-void Platform_getBattery(double *percent, ACPresence *isOnAC);
+void Platform_getBattery(double* percent, ACPresence* isOnAC);
static inline void Platform_getHostname(char* buffer, size_t size) {
Generic_hostname(buffer, size);

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