Author: cazfi
Date: Thu Jan  8 08:02:57 2015
New Revision: 27570

URL: http://svn.gna.org/viewcvs/freeciv?rev=27570&view=rev
Log:
Replaced call to deprecated luaL_optint() with luaL_optinteger() call.

Reported by Jacob Nevins

See bug #23147

Modified:
    trunk/dependencies/luasql/src/ls_mysql.c

Modified: trunk/dependencies/luasql/src/ls_mysql.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/dependencies/luasql/src/ls_mysql.c?rev=27570&r1=27569&r2=27570&view=diff
==============================================================================
--- trunk/dependencies/luasql/src/ls_mysql.c    (original)
+++ trunk/dependencies/luasql/src/ls_mysql.c    Thu Jan  8 08:02:57 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

Reply via email to