1
0
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:
d33tah
2013-08-13 19:54:09 +00:00
parent 61f6696ae3
commit c46f8f0ca4
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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 */