diff options
author | Kjartan Maraas <kmaraas@src.gnome.org> | 2001-03-30 04:31:40 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2001-03-30 04:31:40 +0800 |
commit | fe962a2055234adf407999f0557ae25441ca5c35 (patch) | |
tree | ce9254cb08e91cf6528cde689139bd5e4e535ba7 /camel/providers/cache/camel-cache-map.c | |
parent | 8a0c0a680252b389ad3b3a58090690925b9f99b1 (diff) | |
download | gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.gz gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.zst gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.zip |
Big header cleanups and nntp compile fix
svn path=/trunk/; revision=9024
Diffstat (limited to 'camel/providers/cache/camel-cache-map.c')
-rw-r--r-- | camel/providers/cache/camel-cache-map.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/camel/providers/cache/camel-cache-map.c b/camel/providers/cache/camel-cache-map.c index d3cece6f60..a826dfe157 100644 --- a/camel/providers/cache/camel-cache-map.c +++ b/camel/providers/cache/camel-cache-map.c @@ -23,8 +23,9 @@ * USA */ -#include "camel-cache-map.h" -#include <camel/camel-exception.h> +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <errno.h> #include <fcntl.h> @@ -33,6 +34,9 @@ #include <sys/stat.h> #include <unistd.h> +#include "camel-cache-map.h" +#include <camel/camel-exception.h> + /** * camel_cache_map_new: * @@ -192,7 +196,7 @@ camel_cache_map_write (CamelCacheMap *map, const char *file, if (fd == -1) { g_free (tmpfile); camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - "Could not create cache map file: %s", + _("Could not create cache map file: %s"), g_strerror (errno)); return; } @@ -202,7 +206,7 @@ camel_cache_map_write (CamelCacheMap *map, const char *file, if (close (fd) == -1 || rename (tmpfile, file) == -1) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - "Could not save cache map file: %s", + _("Could not save cache map file: %s"), g_strerror (errno)); unlink (tmpfile); } @@ -231,7 +235,7 @@ camel_cache_map_read (CamelCacheMap *map, const char *file, CamelException *ex) f = fopen (file, "r"); if (!f) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - "Could not open cache map file: %s", + _("Could not open cache map file: %s"), g_strerror (errno)); return; } @@ -242,7 +246,7 @@ camel_cache_map_read (CamelCacheMap *map, const char *file, CamelException *ex) q = strchr (buf, '\n'); if (!p || !q) { camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, - "Bad cache file."); + _("Bad cache file.")); return; } *p++ = *q = '\0'; |