1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2025-07-26 02:39:46 +02:00

remove warning

This commit is contained in:
lxsang
2018-10-08 22:50:40 +02:00
parent 064f874691
commit 1e89b100ff
5 changed files with 41 additions and 42 deletions

View File

@ -198,7 +198,7 @@ static int l_getuid(lua_State* L)
LOG("malloc eror \n");
return 1;
}
if (getgrouplist(name, gid, groups, &ngroups) == -1) {
if (getgrouplist(name, gid, (int*)groups, &ngroups) == -1) {
free(groups);
LOG("getgrouplist() returned -1; ngroups = %d\n", ngroups);
return 1;