diff options
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/nntp/camel-nntp-grouplist.c | 6 | ||||
-rw-r--r-- | camel/providers/pop3/camel-pop3-store.c | 4 | ||||
-rw-r--r-- | camel/providers/smtp/camel-smtp-transport.c | 1 |
3 files changed, 7 insertions, 4 deletions
diff --git a/camel/providers/nntp/camel-nntp-grouplist.c b/camel/providers/nntp/camel-nntp-grouplist.c index 98aac2a03b..d7ee85d182 100644 --- a/camel/providers/nntp/camel-nntp-grouplist.c +++ b/camel/providers/nntp/camel-nntp-grouplist.c @@ -83,6 +83,7 @@ camel_nntp_get_grouplist_from_file (CamelNNTPStore *store, CamelException *ex) CamelNNTPGroupList *list; FILE *fp; char buf[300]; + unsigned long time; g_free (root_dir); fp = fopen (grouplist_file, "r"); @@ -109,7 +110,8 @@ camel_nntp_get_grouplist_from_file (CamelNNTPStore *store, CamelException *ex) list = g_new0 (CamelNNTPGroupList, 1); list->store = store; - sscanf (buf, "%d", &list->time); + sscanf (buf, "%lu", &time); + list->time = time; while (fgets (buf, 300, fp)) { CamelNNTPGroupListEntry *entry = g_new (CamelNNTPGroupListEntry, 1); @@ -154,7 +156,7 @@ camel_nntp_grouplist_save (CamelNNTPGroupList *group_list, CamelException *ex) return; } - fprintf (fp, "%d\n", group_list->time); /* XXX */ + fprintf (fp, "%lu\n", (long)group_list->time); g_list_foreach (group_list->group_list, (GFunc)save_entry, fp); diff --git a/camel/providers/pop3/camel-pop3-store.c b/camel/providers/pop3/camel-pop3-store.c index 54b5e0dea3..4932974c16 100644 --- a/camel/providers/pop3/camel-pop3-store.c +++ b/camel/providers/pop3/camel-pop3-store.c @@ -40,6 +40,8 @@ #define KPOP_PORT 1109 #include <krb.h> +/* MIT krb4 des.h #defines _. Sigh. We don't need it. */ +#undef _ #ifdef NEED_KRB_SENDAUTH_PROTO extern int krb_sendauth(long options, int fd, KTEXT ticket, char *service, @@ -57,7 +59,7 @@ extern int krb_sendauth(long options, int fd, KTEXT ticket, char *service, #include "camel-session.h" #include "camel-exception.h" #include "camel-url.h" -#include "md5-utils.h" +#include "e-util/md5-utils.h" /* Specified in RFC 1939 */ #define POP3_PORT 110 diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c index 2aae484c88..91693bd1f7 100644 --- a/camel/providers/smtp/camel-smtp-transport.c +++ b/camel/providers/smtp/camel-smtp-transport.c @@ -48,7 +48,6 @@ #include "camel-stream-fs.h" #include "camel-session.h" #include "camel-exception.h" -#include "md5-utils.h" #define d(x) x |