diff --git a/mswin32/nmap.sln b/mswin32/nmap.sln index c9e3d8d40..96684aef7 100644 --- a/mswin32/nmap.sln +++ b/mswin32/nmap.sln @@ -23,12 +23,6 @@ EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblua", "..\liblua\liblua.vcproj", "{31FB0767-A71F-4575-8379-002D72B8AF86}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nse_bitlib", "..\nselib\nse_bitlib.vcproj", "{FB7F6FD2-A39D-40A1-86DD-9B08370BDEA6}" - ProjectSection(ProjectDependencies) = postProject - {31FB0767-A71F-4575-8379-002D72B8AF86} = {31FB0767-A71F-4575-8379-002D72B8AF86} - {AC2E7983-2E05-4CDB-96E3-7A03B01DCE85} = {AC2E7983-2E05-4CDB-96E3-7A03B01DCE85} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nse_pcrelib", "..\nselib\nse_pcrelib.vcproj", "{AC2E7983-2E05-4CDB-96E3-7A03B01DCE85}" ProjectSection(ProjectDependencies) = postProject {31FB0767-A71F-4575-8379-002D72B8AF86} = {31FB0767-A71F-4575-8379-002D72B8AF86} EndProjectSection @@ -67,10 +61,6 @@ Global {FB7F6FD2-A39D-40A1-86DD-9B08370BDEA6}.Debug|Win32.Build.0 = Debug|Win32 {FB7F6FD2-A39D-40A1-86DD-9B08370BDEA6}.Release|Win32.ActiveCfg = Release|Win32 {FB7F6FD2-A39D-40A1-86DD-9B08370BDEA6}.Release|Win32.Build.0 = Release|Win32 - {AC2E7983-2E05-4CDB-96E3-7A03B01DCE85}.Debug|Win32.ActiveCfg = Debug|Win32 - {AC2E7983-2E05-4CDB-96E3-7A03B01DCE85}.Debug|Win32.Build.0 = Debug|Win32 - {AC2E7983-2E05-4CDB-96E3-7A03B01DCE85}.Release|Win32.ActiveCfg = Release|Win32 - {AC2E7983-2E05-4CDB-96E3-7A03B01DCE85}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/nse_pcrelib.cc b/nse_pcrelib.cc index f6b68d5e0..f447a7a2a 100644 --- a/nse_pcrelib.cc +++ b/nse_pcrelib.cc @@ -34,7 +34,7 @@ static int get_startoffset(lua_State *L, int stackpos, size_t len) if(startoffset > 0) startoffset--; else if(startoffset < 0) { - startoffset += len; + startoffset += (int) len; if(startoffset < 0) startoffset = 0; } @@ -48,11 +48,11 @@ static int udata_tostring (lua_State *L, const char* type_handle, void *udata = luaL_checkudata(L, 1, type_handle); if(udata) { - (void)snprintf(buf, 255, "%s (%p)", type_name, udata); + (void)Snprintf(buf, 255, "%s (%p)", type_name, udata); lua_pushstring(L, buf); } else { - (void)snprintf(buf, 255, "must be userdata of type '%s'", type_name); + (void)Snprintf(buf, 255, "must be userdata of type '%s'", type_name); (void)luaL_argerror(L, 1, buf); } @@ -138,7 +138,7 @@ static int Lpcre_comp(lua_State *L) ud->pr = pcre_compile(pattern, cflags, &error, &erroffset, tables); if(!ud->pr) { - (void)snprintf(buf, 255, "%s (pattern offset: %d)", error, erroffset+1); + (void)Snprintf(buf, 255, "%s (pattern offset: %d)", error, erroffset+1); /* show offset 1-based as it's common in Lua */ L_lua_error(L, buf); } diff --git a/nselib/nse_pcrelib.vcproj b/nselib/nse_pcrelib.vcproj deleted file mode 100644 index acc13d71f..000000000 --- a/nselib/nse_pcrelib.vcproj +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -