]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2040] cppcheck warnings removed in mysql_ubench
authorTomek Mrugalski <tomasz@isc.org>
Tue, 21 Aug 2012 16:27:43 +0000 (18:27 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 21 Aug 2012 16:27:43 +0000 (18:27 +0200)
tests/tools/dhcp-ubench/mysql_ubench.cc

index 7ca9356a92709095491e174b672f2633530e002d..0351c9950b29e6f1c939dda07f425f14a0b3d774 100644 (file)
@@ -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;