From 2aacbf84cb397e17e677b7e46cc4548ab599493a Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Wed, 29 Nov 2023 21:27:07 +0100 Subject: Use consistent style for process field output/compare functions --- netbsd/NetBSDProcess.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'netbsd') diff --git a/netbsd/NetBSDProcess.c b/netbsd/NetBSDProcess.c index 4166f962..3faa25a2 100644 --- a/netbsd/NetBSDProcess.c +++ b/netbsd/NetBSDProcess.c @@ -228,16 +228,19 @@ void Process_delete(Object* cast) { } static void NetBSDProcess_rowWriteField(const Row* super, RichString* str, ProcessField field) { - const Process* this = (const Process*) super; + const NetBSDProcess* np = (const NetBSDProcess*) super; + char buffer[256]; buffer[255] = '\0'; int attr = CRT_colors[DEFAULT_COLOR]; + //size_t n = sizeof(buffer) - 1; switch (field) { // add NetBSD-specific fields here default: - Process_writeField(this, str, field); + Process_writeField(np->super, str, field); return; } + RichString_appendWide(str, attr, buffer); } -- cgit v1.2.3