Commit 45c5cb1f authored by Simon Kelley's avatar Simon Kelley

Fix compilation warning.

parent f6d69562
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment