diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2017-09-08 09:12:19 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2017-09-08 09:12:19 +0000 |
commit | c5dfd1fd73706e152f75e9614f2de60a2553e58f (patch) | |
tree | 8c6ab9f6aef856034ae2985449c44db882533995 /config | |
parent | 57d900271774827aed474b045b4d28b094225a56 (diff) |
rename variable
Diffstat (limited to 'config')
-rw-r--r-- | config/src/apps/vespa-configproxy-cmd/main.cpp | 2 | ||||
-rw-r--r-- | config/src/apps/vespa-configproxy-cmd/proxycmd.cpp | 4 | ||||
-rw-r--r-- | config/src/apps/vespa-configproxy-cmd/proxycmd.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/config/src/apps/vespa-configproxy-cmd/main.cpp b/config/src/apps/vespa-configproxy-cmd/main.cpp index 16ab5e50710..63fa1285bb2 100644 --- a/config/src/apps/vespa-configproxy-cmd/main.cpp +++ b/config/src/apps/vespa-configproxy-cmd/main.cpp @@ -28,7 +28,7 @@ Application::parseOpts() _flags.method = optArg; break; case 's': - _flags.hostname = optArg; + _flags.targethost = optArg; break; case 'p': _flags.portnumber = atoi(optArg); diff --git a/config/src/apps/vespa-configproxy-cmd/proxycmd.cpp b/config/src/apps/vespa-configproxy-cmd/proxycmd.cpp index fb60f9c223c..3407a880ec7 100644 --- a/config/src/apps/vespa-configproxy-cmd/proxycmd.cpp +++ b/config/src/apps/vespa-configproxy-cmd/proxycmd.cpp @@ -13,7 +13,7 @@ Flags & Flags::operator=(const Flags &) = default; Flags::Flags() : method("cache"), args(), - hostname("localhost"), + targethost("localhost"), portnumber(19090) { } Flags::~Flags() { } @@ -62,7 +62,7 @@ void ProxyCmd::printArray(FRT_Values *rvals) { } vespalib::string ProxyCmd::makeSpec() { - return vespalib::make_string("tcp/%s:%d", _flags.hostname.c_str(), _flags.portnumber); + return vespalib::make_string("tcp/%s:%d", _flags.targethost.c_str(), _flags.portnumber); } void ProxyCmd::autoPrint() { diff --git a/config/src/apps/vespa-configproxy-cmd/proxycmd.h b/config/src/apps/vespa-configproxy-cmd/proxycmd.h index fca5903dc79..df8f429a3c9 100644 --- a/config/src/apps/vespa-configproxy-cmd/proxycmd.h +++ b/config/src/apps/vespa-configproxy-cmd/proxycmd.h @@ -12,7 +12,7 @@ class FRT_Values; struct Flags { vespalib::string method; std::vector<vespalib::string> args; - vespalib::string hostname; + vespalib::string targethost; int portnumber; Flags(const Flags &); Flags & operator=(const Flags &); |