/******************************************************************************
*
-* Copyright (c) 2019 Intel.
+* Copyright (c) 2020 Intel.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
struct dirent *entry = NULL;
- while (entry = readdir(dir)) {
+ while ((entry = readdir(dir))) {
long pid = atol(entry->d_name);
if (0 == pid)
continue;