summaryrefslogtreecommitdiff
path: root/src/tool_getparam.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-07-10 23:11:30 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-07-10 23:11:30 +0200
commitf2b6ebed7bfcfcbe65bcadbce1c5ae7e6134c11e (patch)
tree29ecfad1b06a38d9f05dbe01afda078edb705cc5 /src/tool_getparam.h
parente5843470e8a77d43604884cdf34ccf3f4799a7f5 (diff)
downloadcurl-f2b6ebed7bfcfcbe65bcadbce1c5ae7e6134c11e.tar.gz
cmdline: parse numerical options stricter
1 - str2offset() no longer accepts negative numbers since offsets are by nature positive. 2 - introduced str2unum() for the command line parser that accepts numericals which are not supposed to be negative, so that it will properly complain on apparent bad uses and mistakes. Bug: http://curl.haxx.se/mail/archive-2012-07/0013.html
Diffstat (limited to 'src/tool_getparam.h')
-rw-r--r--src/tool_getparam.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_getparam.h b/src/tool_getparam.h
index 7dc49393b..49cc684c9 100644
--- a/src/tool_getparam.h
+++ b/src/tool_getparam.h
@@ -32,6 +32,7 @@ typedef enum {
PARAM_HELP_REQUESTED,
PARAM_GOT_EXTRA_PARAMETER,
PARAM_BAD_NUMERIC,
+ PARAM_NEGATIVE_NUMERIC,
PARAM_LIBCURL_DOESNT_SUPPORT,
PARAM_NO_MEM,
PARAM_LAST