"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/util.c" between
dnsmasq-2.84.tar.xz and dnsmasq-2.85.tar.xz

About: Dnsmasq is a lightweight caching DNS forwarder and DHCP server.

util.c  (dnsmasq-2.84.tar.xz):util.c  (dnsmasq-2.85.tar.xz)
skipping to change at line 318 skipping to change at line 318
void *whine_malloc(size_t size) void *whine_malloc(size_t size)
{ {
void *ret = calloc(1, size); void *ret = calloc(1, size);
if (!ret) if (!ret)
my_syslog(LOG_ERR, _("failed to allocate %d bytes"), (int) size); my_syslog(LOG_ERR, _("failed to allocate %d bytes"), (int) size);
return ret; return ret;
} }
int sockaddr_isequal(union mysockaddr *s1, union mysockaddr *s2) int sockaddr_isequal(const union mysockaddr *s1, const union mysockaddr *s2)
{ {
if (s1->sa.sa_family == s2->sa.sa_family) if (s1->sa.sa_family == s2->sa.sa_family)
{ {
if (s1->sa.sa_family == AF_INET && if (s1->sa.sa_family == AF_INET &&
s1->in.sin_port == s2->in.sin_port && s1->in.sin_port == s2->in.sin_port &&
s1->in.sin_addr.s_addr == s2->in.sin_addr.s_addr) s1->in.sin_addr.s_addr == s2->in.sin_addr.s_addr)
return 1; return 1;
if (s1->sa.sa_family == AF_INET6 && if (s1->sa.sa_family == AF_INET6 &&
s1->in6.sin6_port == s2->in6.sin6_port && s1->in6.sin6_port == s2->in6.sin6_port &&
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)