From 2fc3d12fb66d94387d537c4d2c4c1e7a7ca4beeb Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 29 Sep 2016 14:48:39 -0700 Subject: Minor tweaks to member code in controller, and fix Linux build. --- controller/EmbeddedNetworkController.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'controller/EmbeddedNetworkController.cpp') diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp index cd8ce8bf..a93aa027 100644 --- a/controller/EmbeddedNetworkController.cpp +++ b/controller/EmbeddedNetworkController.cpp @@ -1004,12 +1004,7 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpGET( if (!member.size()) return 404; - char addrs[24]; - Utils::snprintf(addrs,sizeof(addrs),"%.10llx",address); - - // Add non-persisted fields - member["clock"] = OSUtils::now(); - + _addMemberNonPersistedFields(member,now); responseBody = member.dump(2); responseContentType = "application/json"; -- cgit v1.2.3