mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Split declaration and setting of variable nsp to avoid warning
Actually this is not a problem. I've just split the variable declaration and assignment to fix the following compiler warning: Compiler warning avoided: "variable nsp unused" - in case nmap has been compiled without openssl. Thus, this is more to bypass the warning than to fix anything at all.
This commit is contained in:
parent
9d083df888
commit
f704b6e830
1 changed files with 2 additions and 1 deletions
|
|
@ -1104,7 +1104,8 @@ LUALIB_API int luaopen_nsock (lua_State *L)
|
|||
int top = lua_gettop(L);
|
||||
|
||||
/* library upvalues */
|
||||
nsock_pool nsp = new_pool(L); /* NSOCK_POOL */
|
||||
nsock_pool nsp;
|
||||
nsp = new_pool(L); /* NSOCK_POOL */
|
||||
lua_newtable(L); /* NSOCK_SOCKET */
|
||||
lua_newtable(L); /* PCAP_SOCKET */
|
||||
nseU_weaktable(L, 0, MAX_PARALLELISM, "k"); /* THREAD_SOCKETS */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue