diff options
author | Rémi Denis-Courmont <remid@nvidia.com> | 2014-10-29 08:36:13 +0200 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2014-10-29 12:46:07 -0700 |
commit | 63375e140bf73e779e47a2e9793259ea8de4eeef (patch) | |
tree | d098d985de23b9d4cae0418778d0be004d034767 /test | |
parent | ad1e737a33c2421996e6c0505eccd2c0dc73e2fa (diff) |
test: remove assignment-as-truth-value warning
Signed-off-by: Rémi Denis-Courmont <remid@nvidia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/dlclose.c | 3 |
1 files changed, 1 insertions, 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++; } |