From: Marcin Siodelski Date: Tue, 28 Feb 2017 16:25:20 +0000 (+0100) Subject: [5107] Avoid static cast from NULL to uint32_t. X-Git-Tag: trac5137_base~8^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9035d06ec3fd66328623e299ffdda334a7054b18;p=thirdparty%2Fkea.git [5107] Avoid static cast from NULL to uint32_t. --- diff --git a/src/lib/dhcpsrv/mysql_host_data_source.cc b/src/lib/dhcpsrv/mysql_host_data_source.cc index c5b7548546..9c3540239d 100644 --- a/src/lib/dhcpsrv/mysql_host_data_source.cc +++ b/src/lib/dhcpsrv/mysql_host_data_source.cc @@ -253,7 +253,7 @@ public: // host_id : INT UNSIGNED NOT NULL // The host_id is auto_incremented by MySQL database, // so we need to pass the NULL value - host_id_ = static_cast(NULL); + host_id_ = 0; bind_[0].buffer_type = MYSQL_TYPE_LONG; bind_[0].buffer = reinterpret_cast(&host_id_); bind_[0].is_unsigned = MLM_TRUE;