From 1ff25c043f6fce6246acbaa3d893ef39a7b5c155 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sun, 4 Jan 2026 05:41:21 +0200
Subject: [PATCH 50/50] luasql: Fix comment typos found by codespell

See RM #1848

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 dependencies/luasql/Version.txt    | 2 ++
 dependencies/luasql/src/ls_mysql.c | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dependencies/luasql/Version.txt b/dependencies/luasql/Version.txt
index 1056e9fd80..622a9fec8d 100644
--- a/dependencies/luasql/Version.txt
+++ b/dependencies/luasql/Version.txt
@@ -6,6 +6,8 @@ Some modifications have been done to them:
   Fix has been submitted to upstream.
 - Cleared trailing spaces
   Equivalent patch submitted to upstream.
+- Fixed comment typos found by codespell
+  Fix has been submitted to upstream.
 
 Only the files needed by freeciv are included here, not entire luasql
 source directory hierarchy.
diff --git a/dependencies/luasql/src/ls_mysql.c b/dependencies/luasql/src/ls_mysql.c
index 2529e911cb..2055c7bbe1 100644
--- a/dependencies/luasql/src/ls_mysql.c
+++ b/dependencies/luasql/src/ls_mysql.c
@@ -180,7 +180,7 @@ static void create_colinfo (lua_State *L, cur_data *cur) {
 
 
 /*
-** Closes the cursos and nullify all structure fields.
+** Closes the cursor and nullify all structure fields.
 */
 static void cur_nullify (lua_State *L, cur_data *cur) {
 	/* Nullify structure fields. */
@@ -191,7 +191,7 @@ static void cur_nullify (lua_State *L, cur_data *cur) {
 	luaL_unref (L, LUA_REGISTRYINDEX, cur->coltypes);
 }
 
-	
+
 /*
 ** Get another row of the given cursor.
 */
@@ -591,7 +591,7 @@ static int env_connect (lua_State *L) {
 	const char *unix_socket = luaL_optstring(L, 7, NULL);
 	const long client_flag = (long)luaL_optinteger(L, 8, 0);
 	MYSQL *conn;
-	getenvironment(L); /* validade environment */
+	getenvironment(L); /* validate environment */
 
 	/* Try to init the connection object. */
 	conn = mysql_init(NULL);
-- 
2.51.0

