diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-04 20:16:26 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-04 20:16:26 +0200 |
commit | b3899769660fe891d5ea845e8ea64988743c1ccd (patch) | |
tree | 90ab48a130e27273fe4bb04cc93379cddbf6e455 /lib/command_match.c | |
parent | lib: Allow optional whitespace in ranges (diff) | |
download | frr-b3899769660fe891d5ea845e8ea64988743c1ccd.tar.xz frr-b3899769660fe891d5ea845e8ea64988743c1ccd.zip |
lib: Unrefactor to signed long long for ranges
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_match.c')
-rw-r--r-- | lib/command_match.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/command_match.c b/lib/command_match.c index aac2edc48..eaacce027 100644 --- a/lib/command_match.c +++ b/lib/command_match.c @@ -636,12 +636,12 @@ static enum match_type match_range (struct graph_node *rangenode, const char *str) { char *endptr = NULL; - signed int val; + long long val; if (str == NULL) return 1; - val = strtoimax (str, &endptr, 10); + val = strtoll (str, &endptr, 10); if (*endptr != '\0') return 0; @@ -674,7 +674,7 @@ match_number(struct graph_node *numnode, const char *word) { if (!strcmp("\0", word)) return no_match; char *endptr; - int num = strtoimax(word, &endptr, 10); + long long num = strtoll (word, &endptr, 10); if (endptr != '\0') return no_match; return num == numnode->value ? exact_match : no_match; } |