From 94a52cb5c9274fe021b3fc114180294cadb598b4 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 10 Apr 2021 11:46:57 +0200 Subject: Rename cmdlineBasenameOffset to cmdlineBasenameEnd to properly indicate the fields purpose --- Process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Process.c') diff --git a/Process.c b/Process.c index e65eb998..5a3bf26b 100644 --- a/Process.c +++ b/Process.c @@ -259,7 +259,7 @@ static inline void Process_writeCommand(const Process* this, int attr, int basea if (this->settings->highlightBaseName || !this->settings->showProgramPath) { int basename = 0; - for (int i = 0; i < this->cmdlineBasenameOffset; i++) { + for (int i = 0; i < this->cmdlineBasenameEnd; i++) { if (cmdline[i] == '/') { basename = i + 1; } else if (cmdline[i] == ':') { @@ -273,7 +273,7 @@ static inline void Process_writeCommand(const Process* this, int attr, int basea } else { cmdline += basename; } - len = this->cmdlineBasenameOffset - basename; + len = this->cmdlineBasenameEnd - basename; } } @@ -541,7 +541,7 @@ void Process_init(Process* this, const Settings* settings) { this->showChildren = true; this->show = true; this->updated = false; - this->cmdlineBasenameOffset = -1; + this->cmdlineBasenameEnd = -1; if (Process_getuid == (uid_t)-1) { Process_getuid = getuid(); -- cgit v1.2.3