diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-25 19:41:23 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-25 19:41:23 -0300 |
commit | 78d09f955a0462d3cf328e7f753031cea2ba21c7 (patch) | |
tree | 8cb441bfe9228c474164880955a6bc06b4558ce4 /Process.c | |
parent | d7e5020169d79cad593af93780063f7cc4d880d3 (diff) |
Compare with long, for 64-bit systems
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -793,13 +793,13 @@ void Process_sendSignal(Process* this, size_t sgn) { kill(this->pid, (int) sgn); } -int Process_pidCompare(const void* v1, const void* v2) { +long Process_pidCompare(const void* v1, const void* v2) { Process* p1 = (Process*)v1; Process* p2 = (Process*)v2; return (p1->pid - p2->pid); } -int Process_compare(const void* v1, const void* v2) { +long Process_compare(const void* v1, const void* v2) { Process *p1, *p2; ProcessList *pl = ((Process*)v1)->pl; if (pl->direction == 1) { |