aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-remote-store.c
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/camel-remote-store.c
parentbfe2227dd0f527b2c8da97d73ed2361a564f08bd (diff)
downloadgsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.tar.gz
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/camel-remote-store.c')
-rw-r--r--camel/camel-remote-store.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c
index 601d5bc4c1..5d1b762fbb 100644
--- a/camel/camel-remote-store.c
+++ b/camel/camel-remote-store.c
@@ -218,13 +218,8 @@ remote_connect (CamelService *service, CamelException *ex)
if (service->url->port)
port = service->url->port;
- else {
- CamelProvider *prov = camel_service_get_provider (service);
-
- port = prov->default_ports[CAMEL_PROVIDER_STORE];
- g_assert (port); /* a remote service MUST define a valid default port */
- }
-
+ else
+ port = store->default_port;
sin.sin_port = htons (port);
memcpy (&sin.sin_addr, h->h_addr, sizeof (sin.sin_addr));