[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 7/7] proc: Fix variable type
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 7/7] proc: Fix variable type |
Date: |
Thu, 20 Jan 2022 00:34:15 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Etienne Brateau, le mer. 19 janv. 2022 20:29:45 +0100, a ecrit:
> ---
> proc/pgrp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/proc/pgrp.c b/proc/pgrp.c
> index 07e587a3..2995bb1e 100644
> --- a/proc/pgrp.c
> +++ b/proc/pgrp.c
> @@ -182,7 +182,7 @@ S_proc_getsessionpids (struct proc *callerp,
> pid_t **pids,
> size_t *npidsp)
> {
> - int count;
> + u_int count;
> struct pgrp *pg;
> struct proc *p;
> struct session *s;
I have rather changed both variables to size_t, for coherency with
*npidsp.
Samuel
- [PATCH 1/7] libpager: fix a comparision between signed and unsigned, Etienne Brateau, 2022/01/19
- [PATCH 2/7] libpager: fix assertion unsigned against 0, Etienne Brateau, 2022/01/19
- [PATCH 3/7] libstore: fix type of a counter, Etienne Brateau, 2022/01/19
- [PATCH 4/7] libdiskfs: improve asserts and remove a sign compare warning, Etienne Brateau, 2022/01/19
- [PATCH 7/7] proc: Fix variable type, Etienne Brateau, 2022/01/19
- Re: [PATCH 7/7] proc: Fix variable type,
Samuel Thibault <=
- [PATCH 6/7] libnetfs: fix type of variable, Etienne Brateau, 2022/01/19
- [PATCH 5/7] libps: fix some signed vs unsigned comparision, Etienne Brateau, 2022/01/19
- Re: [PATCH 1/7] libpager: fix a comparision between signed and unsigned, Samuel Thibault, 2022/01/19