summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-04-30 11:16:28 +0200
committerTor Egge <Tor.Egge@online.no>2021-04-30 11:16:28 +0200
commitedd73d0ba5a3cfb856f9f75e98340efc2ade556a (patch)
tree2b0dc868883e33b4e4d979191a445e2f88af0090 /config
parent724ae768c90eefd08ffab79d6dafc520abeacc04 (diff)
Use int for FastOS_UNIX_Application::GetOpt() return value.
Diffstat (limited to 'config')
-rw-r--r--config/src/apps/vespa-configproxy-cmd/main.cpp2
-rw-r--r--config/src/apps/vespa-get-config/getconfig.cpp2
-rw-r--r--config/src/apps/vespa-ping-configproxy/pingproxy.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/config/src/apps/vespa-configproxy-cmd/main.cpp b/config/src/apps/vespa-configproxy-cmd/main.cpp
index bb908e7268b..967bfee4ba9 100644
--- a/config/src/apps/vespa-configproxy-cmd/main.cpp
+++ b/config/src/apps/vespa-configproxy-cmd/main.cpp
@@ -19,7 +19,7 @@ public:
bool
Application::parseOpts()
{
- char c = '?';
+ int c = '?';
const char *optArg = NULL;
int optInd = 0;
while ((c = GetOpt("m:s:p:h", optArg, optInd)) != -1) {
diff --git a/config/src/apps/vespa-get-config/getconfig.cpp b/config/src/apps/vespa-get-config/getconfig.cpp
index e8ef1765473..273a3abd1cd 100644
--- a/config/src/apps/vespa-get-config/getconfig.cpp
+++ b/config/src/apps/vespa-get-config/getconfig.cpp
@@ -91,7 +91,7 @@ int
GetConfig::Main()
{
bool debugging = false;
- char c = -1;
+ int c = -1;
std::vector<vespalib::string> defSchema;
const char *schema = nullptr;
diff --git a/config/src/apps/vespa-ping-configproxy/pingproxy.cpp b/config/src/apps/vespa-ping-configproxy/pingproxy.cpp
index a47fd25f9af..787681cc670 100644
--- a/config/src/apps/vespa-ping-configproxy/pingproxy.cpp
+++ b/config/src/apps/vespa-ping-configproxy/pingproxy.cpp
@@ -70,7 +70,7 @@ PingProxy::Main()
{
int retval = 0;
bool debugging = false;
- char c = -1;
+ int c = -1;
const char *serverHost = "localhost";
int clientTimeout = 5;