Add new RSSyl feed: use any URI found in the clipboard.
[claws.git] / src / plugins / address_keeper / address_keeper.c
index c85b6fb923eef2a5f138b6abbe61d2a0bda4273d..a5aab85a4f1e0dfdaf7ace6313155df7ec54e123 100644 (file)
@@ -33,7 +33,7 @@
 #include "prefs_common.h"
 
 /** Identifier for the hook. */
-static guint hook_id;
+static gulong hook_id = HOOK_NONE;
 
 /**
  * Extracts name from an address.
@@ -248,7 +248,7 @@ gint plugin_init(gchar **error)
        hook_id = hooks_register_hook(COMPOSE_CHECK_BEFORE_SEND_HOOKLIST, 
                                      addrk_before_send_hook, NULL);
        
-       if (hook_id == (guint) -1) {
+       if (hook_id == HOOK_NONE) {
                *error = g_strdup(_("Failed to register check before send hook"));
                return -1;
        }