libsemanage: constify name and ext_lang parameters of semanage_module_install_hll

This fixes a warning from "gcc -Wwrite-strings", when
semanage_module_install_hll is called with "pp" as last parameter.

Acked-by: Steve Lawrence <slawrence@tresys.com>
This commit is contained in:
Nicolas Iooss 2014-09-14 23:41:43 +02:00 committed by Steve Lawrence
parent 14c0564641
commit 81f17737e7
4 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ static int semanage_direct_disconnect(semanage_handle_t * sh);
static int semanage_direct_begintrans(semanage_handle_t * sh);
static int semanage_direct_commit(semanage_handle_t * sh);
static int semanage_direct_install(semanage_handle_t * sh, char *data,
size_t data_len, char *module_name, char *lang_ext);
size_t data_len, const char *module_name, const char *lang_ext);
static int semanage_direct_install_file(semanage_handle_t * sh, const char *module_name);
static int semanage_direct_remove(semanage_handle_t * sh, char *module_name);
static int semanage_direct_list(semanage_handle_t * sh,
@ -1289,7 +1289,7 @@ cleanup:
* writing file. */
static int semanage_direct_install(semanage_handle_t * sh,
char *data, size_t data_len,
char *module_name, char *lang_ext)
const char *module_name, const char *lang_ext)
{
int status = 0;
int ret = 0;

View File

@ -105,7 +105,7 @@ cleanup:
}
int semanage_module_install_hll(semanage_handle_t * sh,
char *module_data, size_t data_len, char *name, char *ext_lang)
char *module_data, size_t data_len, const char *name, const char *ext_lang)
{
if (sh->funcs->install == NULL) {
ERR(sh,

View File

@ -29,7 +29,7 @@
int semanage_module_install_pp(semanage_handle_t * sh,
char *module_data, size_t data_len);
int semanage_module_install_hll(semanage_handle_t * sh,
char *module_data, size_t data_len, char *name, char *ext_lang);
char *module_data, size_t data_len, const char *name, const char *ext_lang);
int semanage_module_upgrade(semanage_handle_t * sh,
char *module_data, size_t data_len);
int semanage_module_upgrade_file(semanage_handle_t * sh,

View File

@ -47,7 +47,7 @@ struct semanage_policy_table {
int (*commit) (struct semanage_handle *);
/* Install a policy module */
int (*install) (struct semanage_handle *, char *, size_t, char *, char *);
int (*install) (struct semanage_handle *, char *, size_t, const char *, const char *);
/* Install a policy module */
int (*install_file) (struct semanage_handle *, const char *);