1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-26 17:38:21 +01:00

remove warning

This commit is contained in:
lxsang 2018-10-09 10:36:38 +02:00
parent 1e89b100ff
commit 6b7af06351

View File

@ -10,7 +10,7 @@
#include <time.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
#include <errno.h>
#include <pwd.h>
@ -198,7 +198,7 @@ static int l_getuid(lua_State* L)
LOG("malloc eror \n");
return 1;
}
if (getgrouplist(name, gid, (int*)groups, &ngroups) == -1) {
if (getgrouplist(name, gid, groups, &ngroups) == -1) {
free(groups);
LOG("getgrouplist() returned -1; ngroups = %d\n", ngroups);
return 1;