summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index 2617c8d4b..ad3a51fbe 100644
--- a/src/config.c
+++ b/src/config.c
@@ -723,7 +723,7 @@ int parse_directive(Directive * d, char *dir, int ac, char *av[MAXPARAMS],
}
switch (d->params[i].type) {
case PARAM_INT:
- val = strtol(av[optind++], &s, 0);
+ val = strtol(av[optind++], &s, 10);
if (*s) {
error(linenum,
"%s: Expected an integer for parameter %d",
@@ -734,7 +734,7 @@ int parse_directive(Directive * d, char *dir, int ac, char *av[MAXPARAMS],
*(int *) d->params[i].ptr = val;
break;
case PARAM_POSINT:
- val = strtol(av[optind++], &s, 0);
+ val = strtol(av[optind++], &s, 10);
if (*s || val <= 0) {
error(linenum,
"%s: Expected a positive integer for parameter %d",
@@ -751,7 +751,7 @@ int parse_directive(Directive * d, char *dir, int ac, char *av[MAXPARAMS],
*(int *) d->params[i].ptr = val;
break;
case PARAM_PORT:
- val = strtol(av[optind++], &s, 0);
+ val = strtol(av[optind++], &s, 10);
if (*s) {
error(linenum,
"%s: Expected a port number for parameter %d",