mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 21:09:00 +00:00
Fix coding style in my code.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user