src/hash.c: misc cleanup for compiler warnings

hash.c:714:36: warning: comparison of integers of different signs:
               'uint32_t' (aka 'unsigned int') and 'int'
               [-Wsign-compare]

    (... and 1 more of the same)
This commit is contained in:
Aaron Jones 2017-08-01 10:19:23 +00:00
parent 85f46bb59e
commit e09aeac9ed
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -711,7 +711,7 @@ find_cli_connid_hash(int connid)
RB_DLINK_FOREACH(ptr, clientbyconnidTable[hashv].head)
{
target_p = ptr->data;
if(target_p->localClient->connid == connid)
if(target_p->localClient->connid == (uint32_t)connid)
return target_p;
}
@ -719,7 +719,7 @@ find_cli_connid_hash(int connid)
RB_DLINK_FOREACH(ptr, clientbyzconnidTable[hashv].head)
{
target_p = ptr->data;
if(target_p->localClient->zconnid == connid)
if(target_p->localClient->zconnid == (uint32_t)connid)
return target_p;
}