From cdf4ac3653a47da1f9566e33f9dc7abbfeb79299 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 22 Jan 2001 22:36:36 +0000 Subject: Change the callbacks in this file to match the callback function types. 2001-01-22 Christopher James Lahey * component/e-summary-url.c: Change the callbacks in this file to match the callback function types. Fixes warnings. svn path=/trunk/; revision=7723 --- camel/ChangeLog | 5 +++++ camel/providers/imap/camel-imap-folder.c | 2 +- executive-summary/ChangeLog | 5 +++++ executive-summary/component/e-summary-url.c | 6 ++++-- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index b887c4f807..034ac2d011 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-01-22 Christopher James Lahey + + * providers/imap/camel-imap-folder.c (camel_imap_folder_selected): + Initialize the value of the variable exists here. + 2001-01-22 Not Zed * .cvsignore */*/.cvsignore: Added profiling temp diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 56de2bbe06..12c0b74f7b 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -216,7 +216,7 @@ void camel_imap_folder_selected (CamelFolder *folder, CamelImapResponse *response, CamelException *ex) { - unsigned long exists, val, uid; + unsigned long exists = 0, val, uid; CamelMessageInfo *info; int i, count; char *resp; diff --git a/executive-summary/ChangeLog b/executive-summary/ChangeLog index 82341fb131..e247e6d6ff 100644 --- a/executive-summary/ChangeLog +++ b/executive-summary/ChangeLog @@ -1,3 +1,8 @@ +2001-01-22 Christopher James Lahey + + * component/e-summary-url.c: Change the callbacks in this file to + match the callback function types. Fixes warnings. + 2001-01-12 Ettore Perazzoli * component/component-factory.c (factory_fn): Pass NULL as the diff --git a/executive-summary/component/e-summary-url.c b/executive-summary/component/e-summary-url.c index ab7dacc52d..2c405b8664 100644 --- a/executive-summary/component/e-summary-url.c +++ b/executive-summary/component/e-summary-url.c @@ -102,8 +102,9 @@ typedef struct _DownloadInfo DownloadInfo; static void close_callback (GnomeVFSAsyncHandle *handle, GnomeVFSResult result, - DownloadInfo *info) + gpointer data) { + DownloadInfo *info = data; if (info->error) { gtk_html_stream_close (info->stream, GTK_HTML_STREAM_ERROR); } else { @@ -121,8 +122,9 @@ read_callback (GnomeVFSAsyncHandle *handle, gpointer buffer, GnomeVFSFileSize bytes_requested, GnomeVFSFileSize bytes_read, - DownloadInfo *info) + gpointer data) { + DownloadInfo *info = data; if (result != GNOME_VFS_OK && result != GNOME_VFS_ERROR_EOF) { g_warning ("Read error"); info->error = TRUE; -- cgit v1.2.3