Abstract nsock logging function to avoid nsock.h inclusion in output.h

This commit is contained in:
dmiller 2020-01-11 16:03:28 +00:00
parent 6ed754b438
commit a2c75e0ef4
6 changed files with 11 additions and 7 deletions

View file

@ -85,7 +85,7 @@ static nsock_pool new_pool (lua_State *L)
nsock_pool *nspp;
/* configure logging */
nsock_set_log_function(nmap_nsock_stderr_logger);
nmap_set_nsock_logger();
nmap_adjust_loglevel(o.scriptTrace());
nsock_pool_set_device(nsp, o.device);