From: Bert Hubert Date: Sun, 7 Oct 2012 16:39:22 +0000 (+0000) Subject: ok NOW it works on all MySQL versions. Thanks again to Kees Monshouwer for testing! X-Git-Tag: auth-3.2-rc1~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce9dd8b45b4597e0b57b1484b2a9ad9dfc5e6504;p=thirdparty%2Fpdns.git ok NOW it works on all MySQL versions. Thanks again to Kees Monshouwer for testing! git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2780 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index aa8ac6d4f3..4985ebbe31 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -31,7 +31,7 @@ SMySQL::SMySQL(const string &database, const string &host, uint16_t port, const mysql_options(&d_db, MYSQL_OPT_WRITE_TIMEOUT, &timeout); #endif - mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, (void*)group.c_str()); + mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, group.c_str()); if (!mysql_real_connect(&d_db, host.empty() ? NULL : host.c_str(), user.empty() ? NULL : user.c_str(),