[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add const qualifier for charset_name in init_dfa

From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: [PATCH] Add const qualifier for charset_name in init_dfa
Date: Mon, 26 Mar 2012 03:24:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120216 Icedove/8.0

In GRUB charset is hardwired to UTF-8 and we return just a pointer to
"UTF-8" in nl_langinfo (CODESET);
I propose adding const qualifier since this function already handles
codeset_name as a pointer to const string.

=== modified file 'grub-core/gnulib/regcomp.c'
--- grub-core/gnulib/regcomp.c    2012-03-26 00:45:46 +0000
+++ grub-core/gnulib/regcomp.c    2012-03-26 01:08:18 +0000
@@ -853,7 +849,7 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
   __re_size_t table_size;
 #ifndef _LIBC
-  char *codeset_name;
+  const char *codeset_name;
 #ifdef RE_ENABLE_I18N
   size_t max_i18n_object_size = MAX (sizeof (wchar_t), sizeof (wctype_t));

Vladimir 'φ-coder/phcoder' Serbinenko

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]