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

Aaron Plattner aplattner at nvidia.com
Wed Oct 29 12:55:50 PDT 2014


Thanks Rémi!  I pushed this series.

On 10/28/2014 11:36 PM, 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 | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/test/dlclose.c b/test/dlclose.c
> index e2295c9..0d09587 100644
> --- a/test/dlclose.c
> +++ b/test/dlclose.c
> @@ -12,7 +12,6 @@
>   static int countOpenFDs(void)
>   {
>       DIR *dir = opendir("/proc/self/fd");
> -    struct dirent *ent;
>       int count = 0;
>
>       if (!dir) {
> @@ -21,7 +20,7 @@ static int countOpenFDs(void)
>           return 0;
>       }
>
> -    while (ent = readdir(dir)) {
> +    while (readdir(dir) != NULL) {
>           count++;
>       }
>
>


-- 
Aaron


More information about the VDPAU mailing list