Try to get rid of a couple of warnings.

svn path=/trunk/; revision=43058
This commit is contained in:
Anders Broman 2012-06-04 09:04:36 +00:00
parent 10fe76d8a0
commit 85972d91c7
2 changed files with 4 additions and 4 deletions

View File

@ -702,7 +702,7 @@ GHashTable *giop_complete_reply_hash = NULL; /* hash */
struct giop_module_key {
gchar *module; /* module (interface?) name */
const gchar *module; /* module (interface?) name */
};
struct giop_module_val {
@ -1063,7 +1063,7 @@ static guint32 giop_hash_module_hash(gconstpointer v) {
*
*/
void register_giop_user_module(giop_sub_dissector_t *sub, gchar *name, gchar *module, int sub_proto) {
void register_giop_user_module(giop_sub_dissector_t *sub, const gchar *name, const gchar *module, int sub_proto) {
struct giop_module_key module_key, *new_module_key;
struct giop_module_val *module_val = NULL;

View File

@ -136,8 +136,8 @@ extern void delete_giop_user(giop_sub_dissector_t *sub, gchar *name);
* This is for explicit dissection.
*/
extern void register_giop_user_module(giop_sub_dissector_t *sub, gchar *name,
gchar *module, int sub_proto);
extern void register_giop_user_module(giop_sub_dissector_t *sub, const gchar *name,
const gchar *module, int sub_proto);
/*
* GIOP Users remove their module and interface names via this function.