summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
authorJeremie Koenig <jk@jk.fr.eu.org>2010-08-25 14:31:58 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-26 23:59:48 +0200
commit7506cc4fb025da2b3741c9976aaf037d40bca73e (patch)
treeb8342f3d3d39799dc6a4fb4fc54ac0a94cbb215d /libps
parentb34bcabd5d030552206697a5ab530eb3aac43e50 (diff)
libps (proc_stat_set_flags): Fix pointer signedness warning
* libps/procstat.c (proc_stat_set_flags): Cast &ps->umask into (int*) before calling ps_msg_get_init_int.
Diffstat (limited to 'libps')
-rw-r--r--libps/procstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libps/procstat.c b/libps/procstat.c
index 13f18292..6e920f4f 100644
--- a/libps/procstat.c
+++ b/libps/procstat.c
@@ -961,7 +961,7 @@ proc_stat_set_flags (struct proc_stat *ps, ps_flags_t flags)
when creating a file. */
MP_MGET (PSTAT_UMASK, PSTAT_TASK,
ps_msg_get_init_int (ps->msgport, ps->task, INIT_UMASK,
- &ps->umask));
+ (int *) &ps->umask));
if (NEED (PSTAT_OWNER_UID, PSTAT_PROC_INFO))
{