diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2006-11-20 16:42:03 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2006-11-20 16:42:03 +0000 |
commit | 6b6b4373b5cf96a16085767c7a0801be24b69aed (patch) | |
tree | 7e4783b5331ec567e8fc6d2ad18eae185286c187 /Process.c | |
parent | 2a025bf4c610448ecd9b8a56d0e15daa92445c4a (diff) |
Changes suggested by Bo Liu
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -148,8 +148,8 @@ Process* Process_clone(Process* this) { void Process_delete(Object* cast) { Process* this = (Process*) cast; - if (this->comm) free(this->comm); assert (this != NULL); + if (this->comm) free(this->comm); free(this); } @@ -186,7 +186,7 @@ void Process_sendSignal(Process* this, int signal) { #define ONE_M (ONE_K * ONE_K) #define ONE_G (ONE_M * ONE_K) -static void Process_printLargeNumber(Process* this, RichString *str, unsigned int number) { +static void Process_printLargeNumber(Process* this, RichString *str, unsigned long number) { char buffer[11]; int len; if(number >= (1000 * ONE_M)) { |