net_server: 0xff is out of the bound of char, use uint8 instead

* found by GCC 4.7.3
This commit is contained in:
Jérôme Duval 2013-04-25 17:41:23 +02:00
parent 3e9e1e11b2
commit 40cf1c0518

View File

@ -895,8 +895,8 @@ NetServer::_ConfigureIPv6LinkLocal(const char* name)
const uint8* mac = link.LinkLevelAddress();
// Check for a few failure situations
static const char zeroMac[6] = {0, 0, 0, 0, 0, 0};
static const char fullMac[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
static const uint8 zeroMac[6] = {0, 0, 0, 0, 0, 0};
static const uint8 fullMac[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
if (memcmp(mac, zeroMac, 6) == 0
|| memcmp(mac, fullMac, 6) == 0) {
// Mac address is all 0 or all FF's