mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
Enable -Wcast-qual compiler warning
This commit is contained in:

committed by
cgzones

parent
ad3acfc847
commit
db472075a4
@ -107,14 +107,14 @@ void FreeBSDProcess_writeField(Process* this, RichString* str, ProcessField fiel
|
||||
}
|
||||
|
||||
long FreeBSDProcess_compare(const void* v1, const void* v2) {
|
||||
FreeBSDProcess *p1, *p2;
|
||||
Settings *settings = ((Process*)v1)->settings;
|
||||
const FreeBSDProcess *p1, *p2;
|
||||
const Settings *settings = ((const Process*)v1)->settings;
|
||||
if (settings->direction == 1) {
|
||||
p1 = (FreeBSDProcess*)v1;
|
||||
p2 = (FreeBSDProcess*)v2;
|
||||
p1 = (const FreeBSDProcess*)v1;
|
||||
p2 = (const FreeBSDProcess*)v2;
|
||||
} else {
|
||||
p2 = (FreeBSDProcess*)v1;
|
||||
p1 = (FreeBSDProcess*)v2;
|
||||
p2 = (const FreeBSDProcess*)v1;
|
||||
p1 = (const FreeBSDProcess*)v2;
|
||||
}
|
||||
switch ((int) settings->sortKey) {
|
||||
// add FreeBSD-specific fields here
|
||||
|
Reference in New Issue
Block a user