]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3295] Renamed variable to conform to coding standards.
authorMarcin Siodelski <marcin@isc.org>
Tue, 21 Jan 2014 08:41:42 +0000 (09:41 +0100)
committerMarcin Siodelski <marcin@isc.org>
Tue, 21 Jan 2014 08:41:42 +0000 (09:41 +0100)
src/bin/dhcp6/dhcp6_srv.cc

index 5e6e5bed5115b113c7704fbff19da2943ce08e7c..4af322eac0b24b4c59919d8a2906db80d1fd7eff 100644 (file)
@@ -1209,16 +1209,16 @@ Dhcpv6Srv::assignIA_NA(const Subnet6Ptr& subnet, const DuidPtr& duid,
     // Check if the client sent us a hint in his IA_NA. Clients may send an
     // address in their IA_NA options as a suggestion (e.g. the last address
     // they used before).
-    boost::shared_ptr<Option6IAAddr> hintOpt = boost::dynamic_pointer_cast<Option6IAAddr>
-                                        (ia->getOption(D6O_IAADDR));
+    boost::shared_ptr<Option6IAAddr> hint_opt =
+        boost::dynamic_pointer_cast<Option6IAAddr>(ia->getOption(D6O_IAADDR));
     IOAddress hint("::");
-    if (hintOpt) {
-        hint = hintOpt->getAddress();
+    if (hint_opt) {
+        hint = hint_opt->getAddress();
     }
 
     LOG_DEBUG(dhcp6_logger, DBG_DHCP6_DETAIL, DHCP6_PROCESS_IA_NA_REQUEST)
-        .arg(duid?duid->toText():"(no-duid)").arg(ia->getIAID())
-        .arg(hintOpt?hint.toText():"(no hint)");
+        .arg(duid ? duid->toText() : "(no-duid)").arg(ia->getIAID())
+        .arg(hint_opt ? hint.toText() : "(no hint)");
 
     // "Fake" allocation is processing of SOLICIT message. We pretend to do an
     // allocation, but we do not put the lease in the database. That is ok,