diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-20 00:33:48 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-20 00:33:51 +0100 |
commit | 980a537c0083d8bfb0311a2d5619b197bc5950a0 (patch) | |
tree | c67a23c1e27ce516b1909afd3b4c47d387229638 /proc | |
parent | fdd4f062ad4e4bbf298b72846bfed263ec1b482b (diff) | |
download | hurd-980a537c0083d8bfb0311a2d5619b197bc5950a0.tar.gz hurd-980a537c0083d8bfb0311a2d5619b197bc5950a0.tar.bz2 hurd-980a537c0083d8bfb0311a2d5619b197bc5950a0.zip |
proc: Fix variable type
Reported-by: Etienne Brateau <etienne.brateau@gmail.com>
Diffstat (limited to 'proc')
-rw-r--r-- | proc/pgrp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/proc/pgrp.c b/proc/pgrp.c index 07e587a3..ea38625f 100644 --- a/proc/pgrp.c +++ b/proc/pgrp.c @@ -182,12 +182,12 @@ S_proc_getsessionpids (struct proc *callerp, pid_t **pids, size_t *npidsp) { - int count; + size_t count; struct pgrp *pg; struct proc *p; struct session *s; pid_t *pp = *pids; - u_int npids = *npidsp; + size_t npids = *npidsp; /* No need to check CALLERP; we don't use it. */ @@ -254,12 +254,12 @@ S_proc_getsessionpgids (struct proc *callerp, pid_t **pgids, size_t *npgidsp) { - int count; + size_t count; struct proc *p; struct pgrp *pg; struct session *s; pid_t *pp = *pgids; - int npgids = *npgidsp; + size_t npgids = *npgidsp; /* No need to check CALLERP; we don't use it. */ |