aboutsummaryrefslogtreecommitdiffstats
path: root/src/timeout.c
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 /src/timeout.c
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 'src/timeout.c')
-rw-r--r--src/timeout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeout.c b/src/timeout.c
index 6c1723ec3..34d792640 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -349,10 +349,10 @@ apply_time_suffix (double *x, char suffix_char)
}
static double
-parse_duration (const char *str)
+parse_duration (char const *str)
{
double duration;
- const char *ep;
+ char const *ep;
if (! (xstrtod (str, &ep, &duration, cl_strtod) || errno == ERANGE)
/* Nonnegative interval. */