mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Picky changes to 47b45b2967
This commit is contained in:
@@ -153,11 +153,6 @@ int iface_enumerate(int family, void *parm, int (*callback)())
|
|||||||
memset(&addr, 0, sizeof(addr));
|
memset(&addr, 0, sizeof(addr));
|
||||||
|
|
||||||
addr.nl_family = AF_NETLINK;
|
addr.nl_family = AF_NETLINK;
|
||||||
#if 0
|
|
||||||
addr.nl_pad = 0;
|
|
||||||
addr.nl_groups = 0;
|
|
||||||
addr.nl_pid = 0; /* address to kernel */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
again:
|
again:
|
||||||
if (family == AF_UNSPEC)
|
if (family == AF_UNSPEC)
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ void *safe_malloc(size_t size)
|
|||||||
* Can be replaced by (void)strlcpy() on some platforms */
|
* Can be replaced by (void)strlcpy() on some platforms */
|
||||||
void safe_strncpy(char *dest, const char *src, size_t size)
|
void safe_strncpy(char *dest, const char *src, size_t size)
|
||||||
{
|
{
|
||||||
if (size)
|
if (size != 0)
|
||||||
{
|
{
|
||||||
dest[size-1] = '\0';
|
dest[size-1] = '\0';
|
||||||
strncpy(dest, src, size-1);
|
strncpy(dest, src, size-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user