mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Object: return int on comparison
Comparisons do, due to the new introduced shaceship-comparisons, only return -1, 0, 1 or the result of strcmp().
This commit is contained in:

committed by
BenBE

parent
293c16e22d
commit
90ea3ac3c9
@ -101,7 +101,7 @@ void SolarisProcess_writeField(const Process* this, RichString* str, ProcessFiel
|
||||
RichString_appendWide(str, attr, buffer);
|
||||
}
|
||||
|
||||
long SolarisProcess_compareByKey(const Process* v1, const Process* v2, ProcessField key) {
|
||||
int SolarisProcess_compareByKey(const Process* v1, const Process* v2, ProcessField key) {
|
||||
const SolarisProcess* p1 = (const SolarisProcess*)v1;
|
||||
const SolarisProcess* p2 = (const SolarisProcess*)v2;
|
||||
|
||||
|
Reference in New Issue
Block a user