From 02a30bfecdd841b4ca48acfc9b5f2df7930e7a69 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 25 Feb 2010 01:43:18 +0000 Subject: warning fixes --- Process.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Process.h') diff --git a/Process.h b/Process.h index c8019d7d..5cd8da40 100644 --- a/Process.h +++ b/Process.h @@ -46,7 +46,7 @@ in the source distribution for its full text. #ifndef Process_isThread -#define Process_isThread(process) (process->pid != process->tgid || process->m_size == 0) +#define Process_isThread(_process) (_process->pid != _process->tgid || _process->m_size == 0) #endif typedef enum ProcessField_ { @@ -75,16 +75,16 @@ typedef struct Process_ { struct ProcessList_ *pl; bool updated; - unsigned int pid; + pid_t pid; char* comm; int indent; char state; bool tag; - unsigned int ppid; + pid_t ppid; unsigned int pgrp; unsigned int session; unsigned int tty_nr; - unsigned int tgid; + pid_t tgid; int tpgid; unsigned long int flags; #ifdef DEBUG @@ -161,9 +161,9 @@ extern char* PROCESS_CLASS; #define PROCESS_CLASS NULL #endif -extern char *Process_fieldNames[]; +extern const char *Process_fieldNames[]; -extern char *Process_fieldTitles[]; +extern const char *Process_fieldTitles[]; #define ONE_K 1024 #define ONE_M (ONE_K * ONE_K) @@ -185,7 +185,7 @@ unsigned long Process_getAffinity(Process* this); bool Process_setAffinity(Process* this, unsigned long mask); #endif -void Process_sendSignal(Process* this, int signal); +void Process_sendSignal(Process* this, int sgn); int Process_pidCompare(const void* v1, const void* v2); -- cgit v1.2.3