From 83e00873b7f28956b03896ba8f14835b667de815 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 7 Aug 2012 21:26:02 +0200 Subject: [PATCH] unix: fix const correctness compiler warning This is a back-port of commit f97c80f from the master branch. --- src/unix/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/fs.c b/src/unix/fs.c index e62832db..c43c19f2 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -85,7 +85,7 @@ void uv_fs_req_cleanup(uv_fs_t* req) { if (req->cb) uv__req_unregister(req->loop, req); - free(req->path); + free((void*)req->path); req->path = NULL; switch (req->fs_type) {