From: Tomek Mrugalski Date: Tue, 21 Aug 2012 16:27:43 +0000 (+0200) Subject: [2040] cppcheck warnings removed in mysql_ubench X-Git-Tag: trac2351_base~117^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c8635b42e86fd2e9c95ed4205457249c394cbed;p=thirdparty%2Fkea.git [2040] cppcheck warnings removed in mysql_ubench --- diff --git a/tests/tools/dhcp-ubench/mysql_ubench.cc b/tests/tools/dhcp-ubench/mysql_ubench.cc index 7ca9356a92..0351c9950b 100644 --- a/tests/tools/dhcp-ubench/mysql_ubench.cc +++ b/tests/tools/dhcp-ubench/mysql_ubench.cc @@ -406,7 +406,7 @@ void MySQL_uBenchmark::searchLease4Test() { // 4th parameter: Client-id response[3].buffer_type = MYSQL_TYPE_STRING; - response[3].buffer = client_id; + response[3].buffer = &client_id; // 5th parameter: valid-lifetime response[4].buffer_type = MYSQL_TYPE_LONG; @@ -426,7 +426,7 @@ void MySQL_uBenchmark::searchLease4Test() { // 9th parameter: hostname response[8].buffer_type = MYSQL_TYPE_STRING; - response[8].buffer = hostname; + response[8].buffer = &hostname; // 10th parameter: fqdn_fwd response[9].buffer_type = MYSQL_TYPE_TINY;