aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-30 04:06:29 +0800
committerDan Winship <danw@src.gnome.org>2000-10-30 04:06:29 +0800
commit65f9e9cd94a701aee2ac89cf38009fa08157e887 (patch)
treef130ab35c936b854d9f62f6b1fafe4e0ccec2c7c /camel/providers
parentf860c394b4d093633a79c185cde2b4f95d01dad2 (diff)
downloadgsoc2013-evolution-65f9e9cd94a701aee2ac89cf38009fa08157e887.tar
gsoc2013-evolution-65f9e9cd94a701aee2ac89cf38009fa08157e887.tar.gz
gsoc2013-evolution-65f9e9cd94a701aee2ac89cf38009fa08157e887.tar.bz2
gsoc2013-evolution-65f9e9cd94a701aee2ac89cf38009fa08157e887.tar.lz
gsoc2013-evolution-65f9e9cd94a701aee2ac89cf38009fa08157e887.tar.xz
gsoc2013-evolution-65f9e9cd94a701aee2ac89cf38009fa08157e887.tar.zst
gsoc2013-evolution-65f9e9cd94a701aee2ac89cf38009fa08157e887.zip
Remove md5-utils.h include since it's not part of Camel any more.
* camel.h: Remove md5-utils.h include since it's not part of Camel any more. * camel-charset-map.c: Kill some warnings. * providers/nntp/camel-nntp-grouplist.c (camel_nntp_get_grouplist_from_file, camel_nntp_grouplist_save): Clean up warnings about time_t casts. * providers/smtp/camel-smtp-transport.c: Remove unused md5-utils.h include. * providers/pop3/camel-pop3-store.c: Undefine the "_" macro defined by krb4's des.h when compiling with krb support. Fix md5-utils.h include. svn path=/trunk/; revision=6253
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/nntp/camel-nntp-grouplist.c6
-rw-r--r--camel/providers/pop3/camel-pop3-store.c4
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c1
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