sgwdynspeed: errno is not set by strtoul function, so don't use it
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 6 Jun 2012 15:04:04 +0000 (17:04 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Jun 2012 22:29:39 +0000 (00:29 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/sgwdynspeed/src/speedFile.c

index b6ba831..24b2eb9 100644 (file)
@@ -75,7 +75,7 @@ static bool readUL(const char * valueName, const char * value, unsigned long * v
 
        if (!((endPtr != value) && (*value != '\0') && (*endPtr == '\0'))) {
                /* invalid conversion */
-               sgwDynSpeedError(true, "Configured %s (%s) could not be converted to a number", valueName, value);
+               sgwDynSpeedError(false, "Value of parameter %s (%s) could not be converted to a number", valueName, value);
                return false;
        }