]> Savannah Git Hosting - gnulib.git/commitdiff
xstrtol-error: Improve comments.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2023 22:24:42 +0000 (23:24 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2023 22:24:42 +0000 (23:24 +0100)
* lib/xstrtol-error.h (xstrtol_fatal): Add parameter names to
declaration.

ChangeLog
lib/xstrtol-error.h

index e1821ed6a51cc2184b24cc7cb1599bb3128b2f61..da069889d25c9b6b7b07f5d028fb3497de687f2a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-11  Bruno Haible  <bruno@clisp.org>
+
+       xstrtol-error: Improve comments.
+       * lib/xstrtol-error.h (xstrtol_fatal): Add parameter names to
+       declaration.
+
 2023-01-11  Bruno Haible  <bruno@clisp.org>
 
        spawn-pipe tests: Fix test failure on Android.
index e79ff151eea79f4e03e086f2572b1774c9594bb3..d8892ea871725e8426067df29b3f3df631f1f4ec 100644 (file)
@@ -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_ */