"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "getifaddr.c" between
minidlna-1.1.4.tar.gz and minidlna-1.1.5.tar.gz

About: ReadyMedia (formerly known as MiniDLNA) is a simple media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients.

getifaddr.c  (minidlna-1.1.4):getifaddr.c  (minidlna-1.1.5)
skipping to change at line 325 skipping to change at line 325
{ {
memcpy(&old_addr[i], &lan_addr[i].addr, sizeof(struct in_addr)); memcpy(&old_addr[i], &lan_addr[i].addr, sizeof(struct in_addr));
close(lan_addr[i].snotify); close(lan_addr[i].snotify);
} }
n_lan_addr = 0; n_lan_addr = 0;
i = 0; i = 0;
do { do {
getifaddr(runtime_vars.ifaces[i]); getifaddr(runtime_vars.ifaces[i]);
i++; i++;
} while (runtime_vars.ifaces[i]); } while (i < MAX_LAN_ADDR && runtime_vars.ifaces[i]);
for (i = 0; i < n_lan_addr; i++) for (i = 0; i < n_lan_addr; i++)
{ {
for (j = 0; j < MAX_LAN_ADDR; j++) for (j = 0; j < MAX_LAN_ADDR; j++)
{ {
if (memcmp(&lan_addr[i].addr, &old_addr[j], sizeof(struct in_addr)) == 0) if (memcmp(&lan_addr[i].addr, &old_addr[j], sizeof(struct in_addr)) == 0)
break; break;
} }
/* Send out startup notifies if it's a new interface, or on SIGHU P */ /* Send out startup notifies if it's a new interface, or on SIGHU P */
if (force_notify || j == MAX_LAN_ADDR) if (force_notify || j == MAX_LAN_ADDR)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS