diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2007-04-05 19:53:23 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2007-04-05 19:53:23 +0000 |
commit | a227b20fefda7d14316523ddd3aa1ce2b439169c (patch) | |
tree | 08ddd2b5636ded3fee6ac175c16014986e5d0969 /Process.c | |
parent | e3198ca63b0996f4a2e46ab5bbb98650de47ea3e (diff) |
Switch to unsigned keys in hash, according to issue #1688290
in the sf tracker
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -50,16 +50,16 @@ typedef struct Process_ { struct ProcessList_ *pl; bool updated; - int pid; + unsigned int pid; char* comm; int indent; char state; bool tag; - int ppid; - int pgrp; - int session; - int tty_nr; - int tpgid; + unsigned int ppid; + unsigned int pgrp; + unsigned int session; + unsigned int tty_nr; + unsigned int tpgid; unsigned long int flags; #ifdef DEBUG unsigned long int minflt; @@ -261,12 +261,12 @@ void Process_writeField(Process* this, RichString* str, ProcessField field) { int n = PROCESS_COMM_LEN; switch (field) { - case PID: snprintf(buffer, n, "%5d ", this->pid); break; - case PPID: snprintf(buffer, n, "%5d ", this->ppid); break; - case PGRP: snprintf(buffer, n, "%5d ", this->pgrp); break; - case SESSION: snprintf(buffer, n, "%5d ", this->session); break; - case TTY_NR: snprintf(buffer, n, "%5d ", this->tty_nr); break; - case TPGID: snprintf(buffer, n, "%5d ", this->tpgid); break; + case PID: snprintf(buffer, n, "%5u ", this->pid); break; + case PPID: snprintf(buffer, n, "%5u ", this->ppid); break; + case PGRP: snprintf(buffer, n, "%5u ", this->pgrp); break; + case SESSION: snprintf(buffer, n, "%5u ", this->session); break; + case TTY_NR: snprintf(buffer, n, "%5u ", this->tty_nr); break; + case TPGID: snprintf(buffer, n, "%5u ", this->tpgid); break; case PROCESSOR: snprintf(buffer, n, "%3d ", this->processor+1); break; case COMM: { if (!this->pl->treeView || this->indent == 0) { |