mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix compilation warning.
This commit is contained in:
@@ -42,14 +42,13 @@ static char *inotify_buffer;
|
|||||||
Return value is malloc'ed */
|
Return value is malloc'ed */
|
||||||
static char *my_readlink(char *path)
|
static char *my_readlink(char *path)
|
||||||
{
|
{
|
||||||
ssize_t rc;
|
ssize_t rc, size = 64;
|
||||||
size_t size = 64;
|
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
buf = safe_malloc(size);
|
buf = safe_malloc(size);
|
||||||
rc = readlink(path, buf, size);
|
rc = readlink(path, buf, (size_t)size);
|
||||||
|
|
||||||
if (rc == -1)
|
if (rc == -1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user