* src/common/hooks.[ch]
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Thu, 17 Jul 2003 14:23:12 +0000 (14:23 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Thu, 17 Jul 2003 14:23:12 +0000 (14:23 +0000)
* src/plugins/clamav/clamav_plugin.c
* src/plugins/spamassassin/spamassassin.c
* src/plugins/trayicon/trayicon.c
fix signedness muck

ChangeLog.claws
configure.ac
src/common/hooks.c
src/common/hooks.h
src/plugins/clamav/clamav_plugin.c
src/plugins/spamassassin/spamassassin.c
src/plugins/trayicon/trayicon.c

index b3afcef..5829096 100644 (file)
@@ -1,3 +1,11 @@
+2003-07-17 [alfons]    0.9.3claws19
+
+       * src/common/hooks.[ch]
+       * src/plugins/clamav/clamav_plugin.c
+       * src/plugins/spamassassin/spamassassin.c
+       * src/plugins/trayicon/trayicon.c
+               fix signedness muck 
+
 2003-07-17 [alfons]    0.9.3claws18
 
        * src/procmime.c
index 1c6ccda..650118e 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws18
+EXTRA_VERSION=claws19
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 965137c..149141e 100644 (file)
@@ -45,21 +45,21 @@ GHookList *hooks_get_hooklist(gchar *hooklist_name)
        return hooklist;
 }
 
-gint hooks_register_hook(gchar *hooklist_name,
-                        SylpheedHookFunction hook_func,
-                        gpointer userdata)
+guint hooks_register_hook(gchar *hooklist_name,
+                         SylpheedHookFunction hook_func,
+                         gpointer userdata)
 {
        GHookList *hooklist;
        GHook *hook;
 
-       g_return_val_if_fail(hooklist_name != NULL, -1);
-       g_return_val_if_fail(hook_func != NULL, -1);
+       g_return_val_if_fail(hooklist_name != NULL, (guint)-1);
+       g_return_val_if_fail(hook_func != NULL, (guint)-1);
        
        hooklist = hooks_get_hooklist(hooklist_name);
-       g_return_val_if_fail(hooklist != NULL, -1);
+       g_return_val_if_fail(hooklist != NULL, (guint)-1);
 
        hook = g_hook_alloc(hooklist);
-       g_return_val_if_fail(hook != NULL, -1);
+       g_return_val_if_fail(hook != NULL, (guint)-1);
 
        hook->func = hook_func;
        hook->data = userdata;
index ecdb23e..47a1140 100644 (file)
@@ -25,7 +25,7 @@
 typedef gboolean (*SylpheedHookFunction)       (gpointer source,
                                                 gpointer userdata);
 
-gint hooks_register_hook       (gchar                  *hooklist_name,
+guint hooks_register_hook      (gchar                  *hooklist_name,
                                 SylpheedHookFunction    hook_func,
                                 gpointer                userdata);
 void hooks_unregister_hook     (gchar                  *hooklist_name,
index c6ee1d5..dab8222 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "clamav_plugin.h"
 
-static gint hook_id;
+static guint hook_id;
 
 static ClamAvConfig config;
 
index bbea649..1da9d8f 100644 (file)
@@ -63,7 +63,7 @@
 #include <pwd.h>
 #endif
 
-static gint hook_id;
+static guint hook_id;
 static int flags = SPAMC_RAW_MODE | SPAMC_SAFE_FALLBACK | SPAMC_CHECK_ONLY;
 static gchar *username = NULL;
 
index 082e49f..e138e9c 100644 (file)
@@ -35,7 +35,7 @@
 #include "unreadmail.xpm"
 #include "nomail.xpm"
 
-static gint hook_id;
+static guint hook_id;
 
 static GdkPixmap *newmail_pixmap;
 static GdkPixmap *newmail_bitmap;