console: argtable3: fix -Wwrite-strings warnings

Re-apply commit 744c2dcdd9
pull/10244/head
Ivan Grokhotkov 2022-04-05 19:59:08 +02:00
rodzic 499dbc2152
commit 5a8faed3dc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 1E050E141B280628
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -668,9 +668,9 @@ void arg_print_option(FILE* fp, const char* shortopts, const char* longopts, con
*/
static void arg_print_gnuswitch_ds(arg_dstr_t ds, struct arg_hdr** table) {
int tabindex;
char* format1 = " -%c";
char* format2 = " [-%c";
char* suffix = "";
const char* format1 = " -%c";
const char* format2 = " [-%c";
const char* suffix = "";
/* print all mandatory switches that are without argument values */
for (tabindex = 0; table[tabindex] && !(table[tabindex]->flag & ARG_TERMINATOR); tabindex++) {