aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sa-junk-plugin
diff options
context:
space:
mode:
authorSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-05-11 18:22:26 +0800
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-05-11 18:22:26 +0800
commit730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144 (patch)
treef419fdd0d3721e2182bdbb194193669ac382fcbc /plugins/sa-junk-plugin
parent347bdcf94d622efbdeaa687a617efa8d1480bb74 (diff)
downloadgsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar.gz
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar.bz2
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar.lz
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar.xz
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar.zst
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.zip
Bug 437584 – Compilation warning in evolution's plugins folder
svn path=/trunk/; revision=33507
Diffstat (limited to 'plugins/sa-junk-plugin')
-rw-r--r--plugins/sa-junk-plugin/ChangeLog6
-rw-r--r--plugins/sa-junk-plugin/em-junk-filter.c13
2 files changed, 13 insertions, 6 deletions
diff --git a/plugins/sa-junk-plugin/ChangeLog b/plugins/sa-junk-plugin/ChangeLog
index e55b01c320..9adab6f392 100644
--- a/plugins/sa-junk-plugin/ChangeLog
+++ b/plugins/sa-junk-plugin/ChangeLog
@@ -1,3 +1,9 @@
+2007-05-11 Gilles Dartiguelongue <dartigug@esiee.fr>
+
+ * em-junk-filter.c: (pipe_to_sa_full), (em_junk_sa_check_junk),
+ (org_gnome_sa_use_remote_tests): Fix casts and prototypes,
+ fixes part of bug #437584.
+
2007-04-03 Srinivasa Ragavan <sragavan@novell.com>
Added few more plugin callbacks and moved the UI options from core
diff --git a/plugins/sa-junk-plugin/em-junk-filter.c b/plugins/sa-junk-plugin/em-junk-filter.c
index ad5cd3c334..e60a505bd5 100644
--- a/plugins/sa-junk-plugin/em-junk-filter.c
+++ b/plugins/sa-junk-plugin/em-junk-filter.c
@@ -60,12 +60,13 @@ static pthread_mutex_t em_junk_sa_preferred_socket_path_lock = PTHREAD_MUTEX_INI
static pthread_mutex_t em_junk_sa_spamd_restart_lock = PTHREAD_MUTEX_INITIALIZER;
int e_plugin_lib_enable (EPluginLib *ep, int enable);
-static const char *em_junk_sa_get_name (void);
+//static const char *em_junk_sa_get_name (void);
gboolean em_junk_sa_check_junk (EPlugin *ep, EMJunkHookTarget *target);
void em_junk_sa_report_junk (EPlugin *ep, EMJunkHookTarget *target);
void em_junk_sa_report_non_junk (EPlugin *ep, EMJunkHookTarget *target);
void em_junk_sa_commit_reports (EPlugin *ep, EMJunkHookTarget *target);
gboolean em_junk_sa_validate_binary (EPlugin *ep, EMJunkHookTarget *target);
+GtkWidget *org_gnome_sa_use_remote_tests (struct _EPlugin *epl, struct _EConfigHookItemFactoryData *data);
static void em_junk_sa_init (void);
static void em_junk_sa_finalize (void);
@@ -206,7 +207,7 @@ pipe_to_sa_full (CamelMimeMessage *msg, const char *in, char **argv, int rv_err,
camel_stream_write_to_stream (stream, (CamelStream *) memstream);
camel_object_unref (stream);
- g_byte_array_append (output_buffer, "", 1);
+ g_byte_array_append (output_buffer, (unsigned char *)"", 1);
d(printf ("child process output: %s len: %d\n", output_buffer->data, output_buffer->len));
}
@@ -570,7 +571,7 @@ em_junk_sa_check_junk(EPlugin *ep, EMJunkHookTarget *target)
rv = pipe_to_sa_full (msg, NULL, argv, 0, 1, out) != 0;
- if (!rv && out && !strcmp (out->data, "0/0\n")) {
+ if (!rv && out && !strcmp ((const char *)out->data, "0/0\n")) {
/* an error occurred */
if (em_junk_sa_respawn_spamd ()) {
g_byte_array_set_size (out, 0);
@@ -846,11 +847,11 @@ org_gnome_sa_use_remote_tests (struct _EPlugin *epl, struct _EConfigHookItemFact
check = gtk_check_button_new_with_mnemonic (_("I_nclude remote tests"));
label = gtk_label_new (NULL);
- gtk_label_set_markup (label, text);
+ gtk_label_set_markup (GTK_LABEL (label), text);
g_free (text);
vbox = gtk_vbox_new (FALSE, 2);
- gtk_box_pack_start (vbox, check, FALSE, FALSE, 0);
- gtk_box_pack_start (vbox, label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (check), FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (label), FALSE, FALSE, 0);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), em_junk_sa_local_only);
g_signal_connect (GTK_TOGGLE_BUTTON (check), "toggled", G_CALLBACK (use_remote_tests_cb), "/apps/evolution/mail/junk/sa/local_only");