summaryrefslogtreecommitdiff
path: root/src/libstdbuf.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/libstdbuf.c
parent34ed19eed8fe1e29372f19883c846f888fd79f0e (diff)
downloadcoreutils-ef772bf97f7ec577754cbb5b278504d83cf41a43.tar.gz
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/libstdbuf.c')
-rw-r--r--src/libstdbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstdbuf.c b/src/libstdbuf.c
index 3cb74260a..4350b4655 100644
--- a/src/libstdbuf.c
+++ b/src/libstdbuf.c
@@ -65,10 +65,10 @@
However I think it's just a buggy implementation due to the various
inconsistencies with write sizes and subsequent writes. */
-static const char *
+static char const *
fileno_to_name (const int fd)
{
- const char *ret = NULL;
+ char const *ret = NULL;
switch (fd)
{
@@ -90,7 +90,7 @@ fileno_to_name (const int fd)
}
static void
-apply_mode (FILE *stream, const char *mode)
+apply_mode (FILE *stream, char const *mode)
{
char *buf = NULL;
int setvbuf_mode;