libsemanage: make lang_ext parameter const in semanage_direct_write_langext()
When building with "clang -Wwrite-strings", the compiler reports the following warnings: direct_api.c:1030:46: error: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] status = semanage_direct_write_langext(sh, "cil", modinfo); ^~~~~ direct_api.c:898:11: note: passing argument to parameter 'lang_ext' here char *lang_ext, ^ direct_api.c:1030:46: error: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] status = semanage_direct_write_langext(sh, "cil", modinfo); ^~~~~ direct_api.c:898:11: note: passing argument to parameter 'lang_ext' here char *lang_ext, ^ Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
d6b5b037f9
commit
a51b30ae23
1 changed files with 1 additions and 1 deletions
|
@ -895,7 +895,7 @@ cleanup:
|
|||
}
|
||||
|
||||
static int semanage_direct_write_langext(semanage_handle_t *sh,
|
||||
char *lang_ext,
|
||||
const char *lang_ext,
|
||||
const semanage_module_info_t *modinfo)
|
||||
{
|
||||
int ret = -1;
|
||||
|
|
Loading…
Reference in a new issue