Skip to content

Commit

Permalink
Use defines for library names "nmap" and "stdnse.c"
Browse files Browse the repository at this point in the history
  • Loading branch information
batrick committed Feb 6, 2010
1 parent 78b440b commit ec79a3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nse_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ static void set_nmap_libraries (lua_State *L)
{
static const luaL_Reg libs[] = {
{NSE_PCRELIBNAME, luaopen_pcrelib}, // pcre library
{"nmap", luaopen_nmap}, // nmap bindings
{NSE_NMAPLIBNAME, luaopen_nmap}, // nmap bindings
{NSE_BINLIBNAME, luaopen_binlib},
{BITLIBNAME, luaopen_bit}, // bit library
#ifdef HAVE_OPENSSL
{OPENSSLLIBNAME, luaopen_openssl}, // openssl bindings
#endif
{"stdnse.c", luaopen_stdnse_c},
{NSE_STDNSELIBNAME, luaopen_stdnse_c},
{NULL, NULL}
};

Expand Down
3 changes: 3 additions & 0 deletions nse_nmaplib.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef NSE_NMAPLIB
#define NSE_NMAPLIB

#define NSE_NMAPLIBNAME "nmap"
#define NSE_STDNSELIBNAME "stdnse.c"

class Target;
class Port;

Expand Down

0 comments on commit ec79a3b

Please sign in to comment.