summaryrefslogtreecommitdiffstats
path: root/lib/command_lex.l
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-05 22:50:42 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-05 22:50:42 +0200
commit51fc9379a97c9e1d1f3459fc5e69ad26356302aa (patch)
tree129d7db11529ddeaa841d61b65c3b98e5344921b /lib/command_lex.l
parentlib: Add docstring support (diff)
downloadfrr-51fc9379a97c9e1d1f3459fc5e69ad26356302aa.tar.xz
frr-51fc9379a97c9e1d1f3459fc5e69ad26356302aa.zip
lib: Major parser refactor
Lots of cleanup, code consolidation, organizational improvements. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_lex.l')
-rw-r--r--lib/command_lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_lex.l b/lib/command_lex.l
index 855cf9a06..600c92d23 100644
--- a/lib/command_lex.l
+++ b/lib/command_lex.l
@@ -30,7 +30,7 @@ RANGE \({NUMBER}[ ]?\-[ ]?{NUMBER}\)
{VARIABLE} {yylval.string = XSTRDUP(MTYPE_TMP, yytext); return VARIABLE;}
{NUMBER} {
char *endptr;
- yylval.integer = strtoimax(yytext, &endptr, 10);
+ yylval.number = strtoimax(yytext, &endptr, 10);
return NUMBER;
}
{RANGE} {yylval.string = XSTRDUP(MTYPE_TMP, yytext); return RANGE;}