summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2010-02-25 01:43:18 +0000
committerHisham Muhammad <hisham@gobolinux.org>2010-02-25 01:43:18 +0000
commit02a30bfecdd841b4ca48acfc9b5f2df7930e7a69 (patch)
tree0a86343ad37f77c10ed6cea35b49e5ff2b926163 /Process.h
parent5cc89986887de19c8898ce36e3776b3483a72f2d (diff)
warning fixes
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h14
1 files changed, 7 insertions, 7 deletions
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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy