diff options
author | Benny Baumann <BenBE@geshi.org> | 2021-02-01 22:24:42 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-05-23 09:22:21 +0200 |
commit | b839987df7f6fc761c96b651a3dfc49eb13e879a (patch) | |
tree | 7853491e9257ce9b1eb938d929e9b357ef7e06da /Process.c | |
parent | d74e8b755427ba0c0b7da299b2f1bcdbdc76f62e (diff) |
Rename basenameOffset to cmdlineBasenameOffset
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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->basenameOffset; i++) { + for (int i = 0; i < this->cmdlineBasenameOffset; 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->basenameOffset - basename; + len = this->cmdlineBasenameOffset - basename; } } @@ -541,7 +541,7 @@ void Process_init(Process* this, const Settings* settings) { this->showChildren = true; this->show = true; this->updated = false; - this->basenameOffset = -1; + this->cmdlineBasenameOffset = -1; if (Process_getuid == (uid_t)-1) { Process_getuid = getuid(); |