1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-10 04:23:22 +00:00

Fixed compiler warning

This commit is contained in:
Bryan Roe
2019-01-23 17:50:18 -08:00
parent 6c6c0ff9ab
commit 74d8bd9aac

View File

@@ -3261,12 +3261,12 @@ int MeshAgent_AgentMode(MeshAgentHostContainer *agentHost, int paramLen, char **
// We have MAC addresses in the db, so before we compare them, lets check that we have MAC addresses on the
// system that aren't just zeros. So lets count how many we have
int i = 0;
while (i < macLen)
while (i < (int)macLen)
{
if (strncmp(mac + i, "[00:00:00:00:00:00]", 19) != 0) { break; }
i += 19;
}
if (i < macLen)
if (i < (int)macLen)
{
// We have at least one valid MAC address, so we can continue with the checks