aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-04-08 08:55:02 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-04-08 08:55:02 +0800
commitaa49e8de71f7a81b6429d6b2b72edb06dfdb3b14 (patch)
tree57ef74c8601f3c342e0c0266867f18317b897a50 /camel
parentf37b97d222180b8f7d3e08ec1e9a9c708e2ca835 (diff)
downloadgsoc2013-evolution-aa49e8de71f7a81b6429d6b2b72edb06dfdb3b14.tar.gz
gsoc2013-evolution-aa49e8de71f7a81b6429d6b2b72edb06dfdb3b14.tar.zst
gsoc2013-evolution-aa49e8de71f7a81b6429d6b2b72edb06dfdb3b14.zip
use g_strerror, and use errno directly rather than ferrno().
2003-04-08 Not Zed <NotZed@Ximian.com> * camel-folder-summary.c (camel_folder_summary_load): use g_strerror, and use errno directly rather than ferrno(). (summary_header_load): set errno when we get a version mismatch. svn path=/trunk/; revision=20739
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-folder-summary.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 30aee963a3..7305a450a3 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2003-04-08 Not Zed <NotZed@Ximian.com>
+
+ * camel-folder-summary.c (camel_folder_summary_load): use
+ g_strerror, and use errno directly rather than ferrno().
+ (summary_header_load): set errno when we get a version mismatch.
+
2003-04-07 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c: Disable debug printf's
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index a66026f0ab..1552a08ced 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -589,7 +589,7 @@ camel_folder_summary_load(CamelFolderSummary *s)
return 0;
error:
- g_warning ("Cannot load summary file: %s", strerror (ferror (in)));
+ g_warning ("Cannot load summary file: `%s': %s", s->summary_path, g_strerror (errno));
CAMEL_SUMMARY_UNLOCK(s, io_lock);
fclose (in);
s->flags |= ~CAMEL_SUMMARY_DIRTY;
@@ -1388,6 +1388,7 @@ summary_header_load(CamelFolderSummary *s, FILE *in)
s->saved_count = count;
if (s->version != version) {
g_warning("Summary header version mismatch");
+ errno = EINVAL;
return -1;
}
return 0;