[Box Backup-commit] COMMIT r1723 - box/chris/general/lib/server
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Wed, 04 Jul 2007 19:24:33 +0100
Author: chris
Date: 2007-07-04 19:24:33 +0100 (Wed, 04 Jul 2007)
New Revision: 1723
Modified:
box/chris/general/lib/server/Daemon.cpp
Log:
Make char signed to fix getopt usage on ARM and PowerPC, thanks to TBP and
Reinhard Tartler (merges [1722], see
http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003614.html)
Modified: box/chris/general/lib/server/Daemon.cpp
===================================================================
--- box/chris/general/lib/server/Daemon.cpp 2007-07-04 18:23:24 UTC (rev 1722)
+++ box/chris/general/lib/server/Daemon.cpp 2007-07-04 18:24:33 UTC (rev 1723)
@@ -109,7 +109,7 @@
int masterLevel = Log::INFO; // need an int to do math with
#endif
- char c;
+ signed char c;
optind = 0; // just in case anybody used getopt before
while((c = getopt(argc, (char * const *)argv, "c:DqvVt:Tk")) != -1)