diff options
author | Not Zed <NotZed@Ximian.com> | 2003-04-08 08:55:02 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-04-08 08:55:02 +0800 |
commit | aa49e8de71f7a81b6429d6b2b72edb06dfdb3b14 (patch) | |
tree | 57ef74c8601f3c342e0c0266867f18317b897a50 /camel/camel-folder-summary.c | |
parent | f37b97d222180b8f7d3e08ec1e9a9c708e2ca835 (diff) | |
download | gsoc2013-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/camel-folder-summary.c')
-rw-r--r-- | camel/camel-folder-summary.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |