diff options
| author | Pádraig Brady <P@draigBrady.com> | 2021-04-11 18:23:21 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2021-04-11 18:33:45 +0100 |
| commit | ef772bf97f7ec577754cbb5b278504d83cf41a43 (patch) | |
| tree | b6553bdc35b4d08368d427dbb3bb790acf43129c /src/fmt.c | |
| parent | ls: cache name width determination (diff) | |
| download | coreutils-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/fmt.c')
| -rw-r--r-- | src/fmt.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -133,7 +133,7 @@ struct Word /* Static attributes determined during input. */ - const char *text; /* the text of the word */ + char const *text; /* the text of the word */ int length; /* length of this word */ int space; /* the size of the following space */ unsigned int paren:1; /* starts with open paren */ @@ -183,7 +183,7 @@ static bool split; static bool uniform; /* Prefix minus leading and trailing spaces (default ""). */ -static const char *prefix; +static char const *prefix; /* User-supplied maximum line width (default WIDTH). The only output lines longer than this will each comprise a single word. */ @@ -618,7 +618,7 @@ get_paragraph (FILE *f) static int copy_rest (FILE *f, int c) { - const char *s; + char const *s; out_column = 0; if (in_column > next_prefix_indent || (c != '\n' && c != EOF)) @@ -725,7 +725,7 @@ get_prefix (FILE *f) prefix_lead_space : in_column; else { - const char *p; + char const *p; next_prefix_indent = in_column; for (p = prefix; *p != '\0'; p++) { @@ -994,7 +994,7 @@ put_line (WORD *w, int indent) static void put_word (WORD *w) { - const char *s; + char const *s; int n; s = w->text; |
