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

committed by
cgzones

parent
7fa0f19ffd
commit
41eea8a355
@ -150,8 +150,8 @@ long SolarisProcess_compare(const void* v1, const void* v2) {
|
||||
}
|
||||
}
|
||||
|
||||
bool Process_isThread(Process* this) {
|
||||
SolarisProcess* fp = (SolarisProcess*) this;
|
||||
bool Process_isThread(const Process* this) {
|
||||
const SolarisProcess* fp = (const SolarisProcess*) this;
|
||||
|
||||
if (fp->kernel == 1 ) {
|
||||
return 1;
|
||||
|
@ -58,6 +58,6 @@ void SolarisProcess_writeField(Process* this, RichString* str, ProcessField fiel
|
||||
|
||||
long SolarisProcess_compare(const void* v1, const void* v2);
|
||||
|
||||
bool Process_isThread(Process* this);
|
||||
bool Process_isThread(const Process* this);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user