Skip to content

Commit

Permalink
campaignd: Tiny variable refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Jun 4, 2014
1 parent e6ebc74 commit f3b87a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/campaign_server/campaign_server.cpp
Expand Up @@ -483,7 +483,9 @@ namespace {
}
else if (config &upload = data.child("upload"))
{
LOG_CS << "uploading campaign '" << upload["name"] << "' from " << network::ip_address(sock) << ".\n";
const std::string& addr = network::ip_address(sock);

LOG_CS << "uploading campaign '" << upload["name"] << "' from " << addr << ".\n";
config &data = upload.child("data");
const std::string& name = upload["name"];
std::string lc_name(name.size(), ' ');
Expand Down Expand Up @@ -561,7 +563,7 @@ namespace {
(*campaign)["icon"] = upload["icon"];
(*campaign)["translate"] = upload["translate"];
(*campaign)["dependencies"] = upload["dependencies"];
(*campaign)["upload_ip"] = network::ip_address(sock);
(*campaign)["upload_ip"] = addr;
(*campaign)["type"] = upload["type"];
(*campaign)["email"] = upload["email"];

Expand Down

0 comments on commit f3b87a9

Please sign in to comment.