In a specific function i.e. HgfsServerSearchRead, we check if an
a variable of type unsigned int is less than zero which is clearly
a no-op. Fixed this code.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
HgfsServerPolicy_GetSharesInit,
HgfsServerPolicy_GetSharesCleanup,
&rootSearch->dents);
- if (rootSearch->numDents < 0) {
+ if (((int) (rootSearch->numDents)) < 0) {
ASSERT_DEVEL(0);
LOG(4, ("%s: couldn't get root dents\n", __FUNCTION__));
rootSearch->numDents = 0;