[ekiga] loudmouth(XMPP): don't use a magical value for the default port
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] loudmouth(XMPP): don't use a magical value for the default port
- Date: Tue, 5 Jun 2012 14:16:39 +0000 (UTC)
commit d067be1c4bffb87a4a3f3af448e0b16b7311bba7
Author: Julien Puydt <jpuydt free fr>
Date: Tue Jun 5 16:09:15 2012 +0200
loudmouth(XMPP): don't use a magical value for the default port
plugins/loudmouth/loudmouth-account.cpp | 3 ++-
plugins/loudmouth/loudmouth-bank.cpp | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/loudmouth/loudmouth-account.cpp b/plugins/loudmouth/loudmouth-account.cpp
index 47fd5ed..de7fc1b 100644
--- a/plugins/loudmouth/loudmouth-account.cpp
+++ b/plugins/loudmouth/loudmouth-account.cpp
@@ -189,7 +189,8 @@ LM::Account::enable ()
{
GError *error = NULL;
xmlChar* server = NULL;
- unsigned port = 5222;
+ unsigned port = LM_CONNECTION_DEFAULT_PORT;
+ LmSSL* ssl = NULL;
server = xmlGetProp (node, BAD_CAST "server");
{
diff --git a/plugins/loudmouth/loudmouth-bank.cpp b/plugins/loudmouth/loudmouth-bank.cpp
index fa56829..c1a6b1d 100644
--- a/plugins/loudmouth/loudmouth-bank.cpp
+++ b/plugins/loudmouth/loudmouth-bank.cpp
@@ -147,7 +147,7 @@ LM::Bank::on_new_account_form_submitted (bool submitted,
bool enable_on_startup = result.boolean ("enabled");
boost::shared_ptr<Account> account (new Account (details, dialect, cluster,
- name, user, server, 5222,
+ name, user, server, LM_CONNECTION_DEFAULT_PORT,
resource, password,
enable_on_startup));
xmlNodePtr root = xmlDocGetRootElement (doc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]