]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Reading booleans from config should alow the full boolean range
authorAidan Van Dyk <aidan@ifax.com>
Tue, 16 Sep 2008 18:12:13 +0000 (18:12 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Tue, 16 Sep 2008 18:12:13 +0000 (18:12 +0000)
We already had getBoolean(), we should be using it.

faxd/ModemConfig.c++

index 9755f535a773bb45677330fcf6a6c7bb282886da..8f88327723ca351424f229ac42e2cf2d209d647f 100644 (file)
@@ -738,7 +738,7 @@ ModemConfig::setConfigItem(const char* tag, const char* value)
     else if (findTag(tag, (const tags*)numbers, N(numbers), ix))
        (*this).*numbers[ix].p = atoi(value);
     else if (findTag(tag, (const tags*)booleans, N(booleans), ix))
-       (*this).*booleans[ix].p = atoi(value);
+       (*this).*booleans[ix].p = getBoolean(value);
 
     else if (streq(tag, "modemsetvolumecmd"))
        setVolumeCmds(value);