mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-11 05:14:27 +00:00
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:
parent
14c0564641
commit
81f17737e7
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user