X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fparser.c;h=807b2aaa33fa42488c88e1adff522fa17b4368f3;hb=fd7c092e711ebab55b2688d3859d95dfd0301f73;hp=52cfa69f73dfe514b7424f0edf1c236a5e0edb59;hpb=35fd3dc58da675d659513384221349ef90749a01;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/lib/parser.c b/lib/parser.c index 52cfa69..807b2aa 100644 --- a/lib/parser.c +++ b/lib/parser.c @@ -157,7 +157,7 @@ static int match_number(substring_t *s, int *result, int base) * * Description: Attempts to parse the &substring_t @s as a decimal integer. On * success, sets @result to the integer represented by the string and returns 0. - * Returns either -ENOMEM or -EINVAL on failure. + * Returns -ENOMEM, -EINVAL, or -ERANGE on failure. */ int match_int(substring_t *s, int *result) { @@ -171,7 +171,7 @@ int match_int(substring_t *s, int *result) * * Description: Attempts to parse the &substring_t @s as an octal integer. On * success, sets @result to the integer represented by the string and returns - * 0. Returns either -ENOMEM or -EINVAL on failure. + * 0. Returns -ENOMEM, -EINVAL, or -ERANGE on failure. */ int match_octal(substring_t *s, int *result) { @@ -185,7 +185,7 @@ int match_octal(substring_t *s, int *result) * * Description: Attempts to parse the &substring_t @s as a hexadecimal integer. * On success, sets @result to the integer represented by the string and - * returns 0. Returns either -ENOMEM or -EINVAL on failure. + * returns 0. Returns -ENOMEM, -EINVAL, or -ERANGE on failure. */ int match_hex(substring_t *s, int *result) {