Fix style of ether_ntoa().

This commit is contained in:
ru 2002-04-08 07:51:10 +00:00
parent e7d7c55da1
commit b2401764d7

View File

@ -118,9 +118,9 @@ char
int i;
static char a[18];
i = sprintf(a,"%02x:%02x:%02x:%02x:%02x:%02x",
n->octet[0],n->octet[1],n->octet[2],
n->octet[3],n->octet[4],n->octet[5]);
i = sprintf(a, "%02x:%02x:%02x:%02x:%02x:%02x",
n->octet[0], n->octet[1], n->octet[2],
n->octet[3], n->octet[4], n->octet[5]);
if (i < 17)
return (NULL);
return ((char *)&a);