mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
for functions' arguments are specified twice -- in the declaration (sql-mysql.h) and in the definition (sql-mysql.cc). The added patch removes the redundant defaults from the functions' definitions and fixes the build on -current. Submitted by: bento Not Approved by: portmgr -- no approval requested, since port did not build
23 lines
734 B
Text
23 lines
734 B
Text
--- sql-mysql.cc Wed Jan 12 20:50:03 2000
|
|
+++ sql-mysql.cc Tue Nov 26 19:48:56 2002
|
|
@@ -72,5 +72,5 @@
|
|
// -------------------------------------------------------------
|
|
int
|
|
-Sql_mysql::numRows(int resHandle=0) {
|
|
+Sql_mysql::numRows(int resHandle) {
|
|
if (!results[resHandle]) { return -1; }
|
|
return(mysql_num_rows(results[resHandle]));
|
|
@@ -110,5 +110,5 @@
|
|
// -------------------------------------------------------------
|
|
void
|
|
-Sql_mysql::endquery(int resHandle=0) {
|
|
+Sql_mysql::endquery(int resHandle) {
|
|
if (!results[resHandle]) return;
|
|
mysql_free_result(results[resHandle]);
|
|
@@ -121,5 +121,5 @@
|
|
// party.
|
|
Sql_row *
|
|
-Sql_mysql::fetchrow(int resHandle=0) {
|
|
+Sql_mysql::fetchrow(int resHandle) {
|
|
|
|
if (!results[resHandle]) {
|