Author: cazfi Date: Thu Jan 8 08:03:05 2015 New Revision: 27571 URL: http://svn.gna.org/viewcvs/freeciv?rev=27571&view=rev Log: Replaced call to deprecated luaL_optint() with luaL_optinteger() call.
Reported by Jacob Nevins See bug #23147 Modified: branches/S2_6/dependencies/luasql/src/ls_mysql.c Modified: branches/S2_6/dependencies/luasql/src/ls_mysql.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/dependencies/luasql/src/ls_mysql.c?rev=27571&r1=27570&r2=27571&view=diff ============================================================================== --- branches/S2_6/dependencies/luasql/src/ls_mysql.c (original) +++ branches/S2_6/dependencies/luasql/src/ls_mysql.c Thu Jan 8 08:03:05 2015 @@ -491,7 +491,7 @@ const char *username = luaL_optstring(L, 3, NULL); const char *password = luaL_optstring(L, 4, NULL); const char *host = luaL_optstring(L, 5, NULL); - const int port = luaL_optint(L, 6, 0); + const int port = luaL_optinteger(L, 6, 0); MYSQL *conn; getenvironment(L); /* validade environment */ _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits