1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 20:44:56 +00:00

make cast unnecessary

This commit is contained in:
Nikolas Garofil 2011-02-12 19:11:01 +01:00
parent 678d79e6fe
commit 5aaac61f4e

View File

@ -591,7 +591,7 @@ int update_net_stats(void)
lastv6 = lastv6->next;
}
for(int i=0; i<16; i++)
sscanf(v6addr+2*i, "%2x", (unsigned int*) &(lastv6->addr.s6_addr[i]));
sscanf(v6addr+2*i, "%2hhx", &(lastv6->addr.s6_addr[i]));
lastv6->netmask = netmask;
switch(scope) {
case 0: //global