From 37dc2d95307c48ed98679ffa0f919479ebec6e26 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Tue, 25 Sep 2012 14:46:47 +0100 Subject: [PATCH] Get rid of the compilation warning. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 6a2c80697..bb80767e9 100644 --- a/util.c +++ b/util.c @@ -43,7 +43,7 @@ static int util_usleep(lua_State *L) { } static int util_df(lua_State *L) { - char *path = luaL_checkstring(L, 1); + const char *path = luaL_checkstring(L, 1); struct statvfs vfs; statvfs(path, &vfs); lua_pushnumber(L, (double)vfs.f_blocks * (double)vfs.f_bsize);