aboutsummaryrefslogtreecommitdiffstats
path: root/gl/lib/xdectoint.h
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2021-04-11 18:23:21 +0100
committerPádraig Brady <P@draigBrady.com>2021-04-11 18:33:45 +0100
commitef772bf97f7ec577754cbb5b278504d83cf41a43 (patch)
treeb6553bdc35b4d08368d427dbb3bb790acf43129c /gl/lib/xdectoint.h
parentls: cache name width determination (diff)
downloadcoreutils-ef772bf97f7ec577754cbb5b278504d83cf41a43.tar.gz
coreutils-ef772bf97f7ec577754cbb5b278504d83cf41a43.zip
maint: use "char const *" rather than "const char *"
* cfg.mk (sc_prohibit-const-char): Add a new syntax-check to enforce this style. * *.[ch]: sed -i 's/const char \*/char const */g'
Diffstat (limited to 'gl/lib/xdectoint.h')
-rw-r--r--gl/lib/xdectoint.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gl/lib/xdectoint.h b/gl/lib/xdectoint.h
index 278af885a..a1a381240 100644
--- a/gl/lib/xdectoint.h
+++ b/gl/lib/xdectoint.h
@@ -21,11 +21,11 @@
# include <inttypes.h>
# define _DECLARE_XDECTOINT(name, type) \
- type name (const char *n_str, type min, type max, \
- const char *suffixes, const char *err, int err_exit);
+ type name (char const *n_str, type min, type max, \
+ char const *suffixes, char const *err, int err_exit);
# define _DECLARE_XNUMTOINT(name, type) \
- type name (const char *n_str, int base, type min, type max, \
- const char *suffixes, const char *err, int err_exit);
+ type name (char const *n_str, int base, type min, type max, \
+ char const *suffixes, char const *err, int err_exit);
_DECLARE_XDECTOINT (xdectoimax, intmax_t)
_DECLARE_XDECTOINT (xdectoumax, uintmax_t)