mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Get rid of the compilation warning.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user