Clean address_keeper const-ness warnings
authorRicardo Mones <ricardo@mones.org>
Fri, 15 Nov 2013 22:51:56 +0000 (23:51 +0100)
committerRicardo Mones <ricardo@mones.org>
Sun, 17 Nov 2013 18:40:14 +0000 (19:40 +0100)
Cleans:
 • address_keeper.c:103:16: warning: assignment discards
   'const' qualifier from pointer target type
 • address_keeper_prefs.c:239:38: warning: assignment discards
   'const' qualifier from pointer target type

src/plugins/address_keeper/address_keeper.c
src/plugins/address_keeper/address_keeper_prefs.c

index c742f94..aa6866a 100644 (file)
@@ -95,7 +95,7 @@ gchar *get_comment_from_addr(const gchar *addr)
  *
  * @return TRUE if given address matches any of the patterns, FALSE otherwise.
  */
-gboolean matches_blocked_address(const gchar *addr, MatcherList *blocked)
+gboolean matches_blocked_address(gchar *addr, MatcherList *blocked)
 {
        if (blocked != NULL) {
                MsgInfo info;
index 3ecf7f5..a03b016 100644 (file)
@@ -236,7 +236,7 @@ static void addkeeper_prefs_save_func(PrefsPage * _page)
 
        addkeeper_save_config();
        g_free(addkeeperprefs.block_matching_addrs);
-       addkeeperprefs.block_matching_addrs = text;
+       addkeeperprefs.block_matching_addrs = (gchar *)text;
 }
 
 void address_keeper_prefs_init(void)