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/nntp | |
parent | 8a0c0a680252b389ad3b3a58090690925b9f99b1 (diff) | |
download | gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.gz gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.bz2 gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.lz gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.xz 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/nntp')
-rw-r--r-- | camel/providers/nntp/camel-nntp-auth.c | 4 | ||||
-rw-r--r-- | camel/providers/nntp/camel-nntp-grouplist.c | 4 | ||||
-rw-r--r-- | camel/providers/nntp/camel-nntp-provider.c | 10 | ||||
-rw-r--r-- | camel/providers/nntp/camel-nntp-store.c | 2 |
4 files changed, 13 insertions, 7 deletions
diff --git a/camel/providers/nntp/camel-nntp-auth.c b/camel/providers/nntp/camel-nntp-auth.c index 1f1e6ab2d8..b211f52593 100644 --- a/camel/providers/nntp/camel-nntp-auth.c +++ b/camel/providers/nntp/camel-nntp-auth.c @@ -21,7 +21,11 @@ * USA */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#include <string.h> #include <camel-nntp-auth.h> #include <camel-nntp-store.h> #include <camel-nntp-resp-codes.h> diff --git a/camel/providers/nntp/camel-nntp-grouplist.c b/camel/providers/nntp/camel-nntp-grouplist.c index d7ee85d182..578a6eba66 100644 --- a/camel/providers/nntp/camel-nntp-grouplist.c +++ b/camel/providers/nntp/camel-nntp-grouplist.c @@ -98,7 +98,7 @@ camel_nntp_get_grouplist_from_file (CamelNNTPStore *store, CamelException *ex) } /* read the time */ - if (!fgets (buf, 300, fp)) { + if (!fgets (buf, sizeof (buf), fp)) { camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, _("Unable to load grouplist file for %s: %s"), CAMEL_SERVICE(store)->url->host, @@ -113,7 +113,7 @@ camel_nntp_get_grouplist_from_file (CamelNNTPStore *store, CamelException *ex) sscanf (buf, "%lu", &time); list->time = time; - while (fgets (buf, 300, fp)) { + while (fgets (buf, sizeof (buf), fp)) { CamelNNTPGroupListEntry *entry = g_new (CamelNNTPGroupListEntry, 1); char **split_line = g_strsplit (buf, " ", 4); diff --git a/camel/providers/nntp/camel-nntp-provider.c b/camel/providers/nntp/camel-nntp-provider.c index 76ac521ec6..07857c173c 100644 --- a/camel/providers/nntp/camel-nntp-provider.c +++ b/camel/providers/nntp/camel-nntp-provider.c @@ -23,7 +23,11 @@ * USA */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <string.h> #include "camel-nntp-store.h" #include "camel-provider.h" #include "camel-session.h" @@ -47,9 +51,7 @@ static CamelProvider news_provider = { CAMEL_URL_NEED_HOST | CAMEL_URL_ALLOW_USER | CAMEL_URL_ALLOW_PASSWORD | CAMEL_URL_ALLOW_AUTH, - { 0, 0 }, - - NULL + /* ... */ }; void diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c index c1e8fb81e8..009058dcd4 100644 --- a/camel/providers/nntp/camel-nntp-store.c +++ b/camel/providers/nntp/camel-nntp-store.c @@ -305,7 +305,7 @@ nntp_store_query_auth_types (CamelService *service, gboolean connect, CamelExcep GList *prev; g_warning ("nntp::query_auth_types: not implemented. Defaulting."); - prev = CAMEL_SERVICE_CLASS (remote_store_class)->query_auth_types (service, connect, ex); + prev = CAMEL_SERVICE_CLASS (remote_store_class)->query_auth_types (service, ex); return g_list_prepend (prev, &password_authtype); } |