From ef772bf97f7ec577754cbb5b278504d83cf41a43 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Sun, 11 Apr 2021 18:23:21 +0100 Subject: 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' --- src/system.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/system.h') diff --git a/src/system.h b/src/system.h index 6d564ef44..676f5f562 100644 --- a/src/system.h +++ b/src/system.h @@ -453,7 +453,7 @@ enum # define ASSIGN_STRDUPA(DEST, S) \ do \ { \ - const char *s_ = (S); \ + char const *s_ = (S); \ size_t len_ = strlen (s_) + 1; \ char *tmp_dest_ = alloca (len_); \ DEST = memcpy (tmp_dest_, s_, len_); \ @@ -656,7 +656,7 @@ emit_ancillary_info (char const *program) /* Don't output this redundant message for English locales. Note we still output for 'C' so that it gets included in the man page. */ - const char *lc_messages = setlocale (LC_MESSAGES, NULL); + char const *lc_messages = setlocale (LC_MESSAGES, NULL); if (lc_messages && STRNCMP_LIT (lc_messages, "en_")) { /* TRANSLATORS: Replace LANG_CODE in this URL with your language code -- cgit v1.2.3