[VDPAU] [PATCH 3/4] test: remove assignment-as-truth-value warning

Aaron Plattner aplattner at nvidia.com
Tue Oct 28 09:23:52 PDT 2014


On 10/28/2014 08:20 AM, Rémi Denis-Courmont wrote:
> From: Rémi Denis-Courmont <remid at nvidia.com>
>
> Signed-off-by: Rémi Denis-Courmont <remid at nvidia.com>
> ---
>   test/dlclose.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/dlclose.c b/test/dlclose.c
> index e2295c9..1bd6fa5 100644
> --- a/test/dlclose.c
> +++ b/test/dlclose.c
> @@ -21,7 +21,7 @@ static int countOpenFDs(void)
>           return 0;
>       }
>
> -    while (ent = readdir(dir)) {
> +    while ((ent = readdir(dir)) != NULL) {

ent isn't used for anything, so I think you can just remove it.

>           count++;
>       }
>
>


-- 
Aaron


More information about the VDPAU mailing list