mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-31 13:10:35 +00:00
Fix compilation warning.
This commit is contained in:
1 parent
f6d6956261
commit
45c5cb1f8f
1 file changed
+2
-3
+2
-3
@@ -42,14 +42,13 @@ static char *inotify_buffer;
|
||||
Return value is malloc'ed */
|
||||
static char *my_readlink(char *path)
|
||||
{
|
||||
ssize_t rc;
|
||||
size_t size = 64;
|
||||
ssize_t rc, size = 64;
|
||||
char *buf;
|
||||
|
||||
while (1)
|
||||
{
|
||||
buf = safe_malloc(size);
|
||||
rc = readlink(path, buf, size);
|
||||
rc = readlink(path, buf, (size_t)size);
|
||||
|
||||
if (rc == -1)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user