From c46f8f0ca4110ae49e475d9451f4afff8063cd5e Mon Sep 17 00:00:00 2001 From: d33tah Date: Tue, 13 Aug 2013 19:54:09 +0000 Subject: [PATCH] Fix coding style in my code. --- ncat/ncat_exec_win.c | 2 +- ncat/ncat_lua.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ncat/ncat_exec_win.c b/ncat/ncat_exec_win.c index 697982bb3..1e9069a73 100644 --- a/ncat/ncat_exec_win.c +++ b/ncat/ncat_exec_win.c @@ -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 diff --git a/ncat/ncat_lua.c b/ncat/ncat_lua.c index 0f74e275f..5416973de 100644 --- a/ncat/ncat_lua.c +++ b/ncat/ncat_lua.c @@ -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 */