From 7a7061ac70fdcb290226d06496b2f18c98be6ce2 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Wed, 23 Dec 2009 17:07:36 +0100 Subject: [PATCH] use strtol --- lib/roken/parse_units.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roken/parse_units.c b/lib/roken/parse_units.c index bca4040f1..d2857cfa0 100644 --- a/lib/roken/parse_units.c +++ b/lib/roken/parse_units.c @@ -80,7 +80,7 @@ parse_something (const char *s, const struct units *units, while(isspace((unsigned char)*p) || *p == ',') ++p; - val = (int) strtod (p, &next); /* strtol(p, &next, 0); */ + val = strtol(p, &next, 0); if (p == next) { val = 0; if(!accept_no_val_p)