git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1793 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2002-10-30 17:22:23 +00:00
parent b282b44773
commit 570e196319

View File

@ -59,10 +59,8 @@ void dump_buffer(char *buffer, int len)
printf("\n\n");
}
int compare_sockaddr(struct sockaddr *a, struct sockaddr *b)
int compare_sockaddr(struct sockaddr *a, struct sockaddr *b) // XXX this function is not used at all
{
if (a->sa_len == 4) /* IPv4 address, basically a uint32 */
return (*(a->sa_data) = *(b->sa_data));
return memcmp((void*)a->sa_data, (void*)b->sa_data, a->sa_len);
return memcmp(a->sa_data, b->sa_data, a->sa_len);
}