mirror of
https://github.com/nmap/nmap.git
synced 2026-07-11 18:55:08 +00:00
Fix coding style in my code.
This commit is contained in:
parent
61f6696ae3
commit
c46f8f0ca4
2 changed files with 3 additions and 3 deletions
|
|
@ -233,7 +233,7 @@ int setenv_portable(const char *name, const char *value)
|
|||
int ret;
|
||||
size_t len;
|
||||
len = strlen(name) + strlen(value) + 2; /* 1 for '\0', 1 for =. */
|
||||
var = (char*)safe_malloc(len);
|
||||
var = (char *) safe_malloc(len);
|
||||
Snprintf(var, len, "%s=%s", name, value);
|
||||
/* _putenv was chosen over SetEnvironmentVariable because variables set
|
||||
with the latter seem to be invisible to getenv() calls and Lua uses
|
||||
|
|
|
|||
|
|
@ -153,12 +153,12 @@ static int traceback (lua_State *L)
|
|||
|
||||
void lua_setup(void)
|
||||
{
|
||||
ncat_assert(o.cmdexec!=NULL);
|
||||
ncat_assert(o.cmdexec != NULL);
|
||||
|
||||
L = luaL_newstate();
|
||||
luaL_openlibs(L);
|
||||
|
||||
if (luaL_loadfile(L,o.cmdexec) != 0)
|
||||
if (luaL_loadfile(L, o.cmdexec) != 0)
|
||||
report("Error loading the Lua script");
|
||||
|
||||
/* install the traceback function */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue