aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/nntp
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-03 04:14:57 +0800
committerDan Winship <danw@src.gnome.org>2000-10-03 04:14:57 +0800
commit853d2b99ff4a6509cad65e893a84bb00bae4f669 (patch)
treeb50681527a971284cb48fea4879397c191cd2db3 /camel/providers/nntp
parentbfe2227dd0f527b2c8da97d73ed2361a564f08bd (diff)
downloadgsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.tar
gsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.tar.gz
gsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.tar.bz2
gsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.tar.lz
gsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.tar.xz
gsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.tar.zst
gsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.zip
Remove default_ports.
* camel-provider.h: Remove default_ports. * camel-remote-store.c (remote_connect): Get default_port from CamelRemoteStore rather than CamelProvider. * providers/{imap,nntp,pop3}/camel-*-store.c: Initialize CamelRemoteStore::default_port * providers/*/camel-*-provider.c: Remove default_ports. svn path=/trunk/; revision=5669
Diffstat (limited to 'camel/providers/nntp')
-rw-r--r--camel/providers/nntp/camel-nntp-provider.c2
-rw-r--r--camel/providers/nntp/camel-nntp-store.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/nntp/camel-nntp-provider.c b/camel/providers/nntp/camel-nntp-provider.c
index 6cd7d96978..214fd4b0fa 100644
--- a/camel/providers/nntp/camel-nntp-provider.c
+++ b/camel/providers/nntp/camel-nntp-provider.c
@@ -39,7 +39,6 @@ static CamelProvider news_provider = {
CAMEL_PROVIDER_IS_REMOTE | CAMEL_PROVIDER_IS_STORAGE,
{ 0, 0 },
- { 119, 0 },
NULL
};
@@ -56,7 +55,6 @@ static CamelProvider nntp_provider = {
CAMEL_PROVIDER_IS_REMOTE,
{ 0, 0 },
- { 119, 0 },
NULL
};
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c
index 1e6ccd53c1..710e1d2e13 100644
--- a/camel/providers/nntp/camel-nntp-store.c
+++ b/camel/providers/nntp/camel-nntp-store.c
@@ -386,8 +386,10 @@ static void
camel_nntp_store_init (gpointer object, gpointer klass)
{
CamelService *service = CAMEL_SERVICE (object);
+ CamelRemoteStore *remote_store = CAMEL_REMOTE_STORE (object);
service->url_flags = CAMEL_SERVICE_URL_NEED_HOST;
+ remote_store->default_port = 119;
}
CamelType