mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-24 12:48:32 +00:00
Fix compiler warning.
This commit is contained in:
14
src/crypto.c
14
src/crypto.c
@@ -109,8 +109,6 @@ static struct nettle_hash null_hash = {
|
|||||||
/* Find pointer to correct hash function in nettle library */
|
/* Find pointer to correct hash function in nettle library */
|
||||||
const struct nettle_hash *hash_find(char *name)
|
const struct nettle_hash *hash_find(char *name)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
|
|
||||||
if (!name)
|
if (!name)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@@ -125,13 +123,15 @@ const struct nettle_hash *hash_find(char *name)
|
|||||||
#if (NETTLE_VERSION_MAJOR>3) || ((NETTLE_VERSION_MAJOR==3) && (NETTLE_VERSION_MINOR >=4))
|
#if (NETTLE_VERSION_MAJOR>3) || ((NETTLE_VERSION_MAJOR==3) && (NETTLE_VERSION_MINOR >=4))
|
||||||
return nettle_lookup_hash(name);
|
return nettle_lookup_hash(name);
|
||||||
#else
|
#else
|
||||||
for (i = 0; nettle_hashes[i]; i++)
|
{
|
||||||
{
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; nettle_hashes[i]; i++)
|
||||||
if (strcmp(nettle_hashes[i]->name, name) == 0)
|
if (strcmp(nettle_hashes[i]->name, name) == 0)
|
||||||
return nettle_hashes[i];
|
return nettle_hashes[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user