mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Mark process parameter of Process_writeField consistently const
This commit is contained in:

committed by
cgzones

parent
72103e9613
commit
7109172431
@ -135,7 +135,7 @@ const ProcessClass LinuxProcess_class = {
|
||||
.delete = Process_delete,
|
||||
.compare = LinuxProcess_compare
|
||||
},
|
||||
.writeField = (Process_WriteField) LinuxProcess_writeField,
|
||||
.writeField = LinuxProcess_writeField,
|
||||
};
|
||||
|
||||
LinuxProcess* LinuxProcess_new(Settings* settings) {
|
||||
@ -197,8 +197,8 @@ void LinuxProcess_printDelay(float delay_percent, char* buffer, int n) {
|
||||
}
|
||||
#endif
|
||||
|
||||
void LinuxProcess_writeField(Process* this, RichString* str, ProcessField field) {
|
||||
LinuxProcess* lp = (LinuxProcess*) this;
|
||||
void LinuxProcess_writeField(const Process* this, RichString* str, ProcessField field) {
|
||||
const LinuxProcess* lp = (const LinuxProcess*) this;
|
||||
bool coloring = this->settings->highlightMegabytes;
|
||||
char buffer[256]; buffer[255] = '\0';
|
||||
int attr = CRT_colors[DEFAULT_COLOR];
|
||||
|
Reference in New Issue
Block a user