mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-27 09:58:21 +01:00
remove warning
This commit is contained in:
parent
1e89b100ff
commit
6b7af06351
@ -10,7 +10,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/types.h>
|
#include <sys/wait.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
@ -198,7 +198,7 @@ static int l_getuid(lua_State* L)
|
|||||||
LOG("malloc eror \n");
|
LOG("malloc eror \n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (getgrouplist(name, gid, (int*)groups, &ngroups) == -1) {
|
if (getgrouplist(name, gid, groups, &ngroups) == -1) {
|
||||||
free(groups);
|
free(groups);
|
||||||
LOG("getgrouplist() returned -1; ngroups = %d\n", ngroups);
|
LOG("getgrouplist() returned -1; ngroups = %d\n", ngroups);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user