mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
cleanups and fixes, thanks to cppcheck and gcc -Wextra
This commit is contained in:
6
Object.c
6
Object.c
@ -48,10 +48,4 @@ void Object_setClass(void* this, char* class) {
|
||||
((Object*)this)->class = class;
|
||||
}
|
||||
|
||||
static void Object_display(Object* this, RichString* out) {
|
||||
char objAddress[50];
|
||||
sprintf(objAddress, "%s @ %p", this->class, (void*) this);
|
||||
RichString_write(out, CRT_colors[DEFAULT_COLOR], objAddress);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user