diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-05-05 18:00:51 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-05-05 18:00:56 +0200 |
commit | 684c9bf2526273e59fd1617844a82c41580a7ba8 (patch) | |
tree | c1c424556e798e6c5debb64809782f1af5293e77 | |
parent | 5d81475ab66e907163972c7acc84add183b4ea7e (diff) |
lib/src/a2i/a2i.c: Use ... in macro argument list
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | lib/src/a2i/a2i.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/a2i/a2i.c b/lib/src/a2i/a2i.c index ff46119..bd98c27 100644 --- a/lib/src/a2i/a2i.c +++ b/lib/src/a2i/a2i.c @@ -10,7 +10,7 @@ #include <a2i/strtoi.h> -#define a2i_a2I_nc(n, s, endp, base, min, max) \ +#define a2i_a2I_nc(n, ...) \ ({ \ int status_; \ \ @@ -25,7 +25,7 @@ unsigned int: a2i_strtou_noneg, \ unsigned long: a2i_strtou_noneg, \ unsigned long long: a2i_strtou_noneg \ - )(s, endp, base, min, max, &status_); \ + )(__VA_ARGS__, &status_); \ if (status_ != 0) \ errno = status_; \ \ |