summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-07-04 18:23:24 +0000
committerChris Wilson <chris+github@qwirx.com>2007-07-04 18:23:24 +0000
commitc79d76b9c317b6469ad48eb296d807e6da261190 (patch)
treee93d7134b1536903e14b1d614ad5f01549920bab /lib
parentd31881f5df1677baef7235d82ffc04cbd79b6e68 (diff)
Make char signed to fix getopt usage on ARM and PowerPC, thanks to TBP and
Reinhard Tartler (refs #3, see http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003614.html)
Diffstat (limited to 'lib')
-rw-r--r--lib/server/Daemon.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/server/Daemon.cpp b/lib/server/Daemon.cpp
index 6817585b..34ac0440 100644
--- a/lib/server/Daemon.cpp
+++ b/lib/server/Daemon.cpp
@@ -110,7 +110,7 @@ int Daemon::Main(const char *DefaultConfigFile, int argc, const char *argv[])
int masterLevel = Log::INFO; // need an int to do math with
#endif
- char c;
+ signed char c;
// reset getopt, just in case anybody used it before.
// unfortunately glibc and BSD differ on this point!
@@ -132,15 +132,6 @@ int Daemon::Main(const char *DefaultConfigFile, int argc, const char *argv[])
BOX_TRACE("getopt: optarg = " << optarg);
BOX_TRACE("getopt: argv[optind] = " << argv[optind]);
- // Workaround for weird behaviour noted by TBP in
- // http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003614.html
- if (c == '?' && optopt == 0)
- {
- // this apparently means "end of options" in some
- // buggy libc?
- break;
- }
-
switch(c)
{
case 'c':