[GRASS-git] [OSGeo/grass] 3a9db1: lib: Use integer port argument with mysql_real_con...
Florian Weimer
noreply at github.com
Thu Jan 4 17:41:10 PST 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 3a9db1647f58babe861f442e074390d57a3e1081
https://github.com/OSGeo/grass/commit/3a9db1647f58babe861f442e074390d57a3e1081
Author: Florian Weimer <fweimer at redhat.com>
Date: 2024-01-04 (Thu, 04 Jan 2024)
Changed paths:
M db/drivers/mysql/db.c
Log Message:
-----------
lib: Use integer port argument with mysql_real_connect (#3325)
The port argument is not a string, but a plain integer. In the past, compilers ignore such type errors and produced a warning only, but this is changing, so this change also addresses a potential build failure.
Unlike PQsetdbLogin() which uses char *, mysql_real_connect() uses unsigned int for the port.
Found as part of Porting To Modern C in the Fedora Project.
More information about the grass-commit
mailing list