From 808bb720cabe6b0ad46ffb5f395d74d6d7237c2e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 11 Jan 2023 23:24:42 +0100 Subject: [PATCH] xstrtol-error: Improve comments. * lib/xstrtol-error.h (xstrtol_fatal): Add parameter names to declaration. --- ChangeLog | 6 ++++++ lib/xstrtol-error.h | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e1821ed6a5..da069889d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-01-11 Bruno Haible + + xstrtol-error: Improve comments. + * lib/xstrtol-error.h (xstrtol_fatal): Add parameter names to + declaration. + 2023-01-11 Bruno Haible spawn-pipe tests: Fix test failure on Android. diff --git a/lib/xstrtol-error.h b/lib/xstrtol-error.h index e79ff151ee..d8892ea871 100644 --- a/lib/xstrtol-error.h +++ b/lib/xstrtol-error.h @@ -28,7 +28,7 @@ ERR is the error code returned by one of the xstrto* functions. Use OPT_IDX to decide whether to print the short option string "C" - or "-C" or a long option string derived from LONG_OPTION. OPT_IDX + or "-C" or a long option string derived from LONG_OPTIONS. OPT_IDX is -2 if the short option "C" was used, without any leading "-"; it is -1 if the short option "-C" was used; otherwise it is an index into LONG_OPTIONS, which should have a name preceded by two '-' @@ -38,8 +38,9 @@ After reporting an error, exit with a failure status. */ -_Noreturn void xstrtol_fatal (enum strtol_error, - int, char, struct option const *, - char const *); +_Noreturn void xstrtol_fatal (enum strtol_error /* err */, + int /* opt_idx */, char /* c */, + struct option const * /* long_options */, + char const * /* arg */); #endif /* not XSTRTOL_ERROR_H_ */ -- 2.39.5