aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-10-04 05:40:43 +0800
committerIain Holmes <iain@src.gnome.org>2001-10-04 05:40:43 +0800
commit628b33f28c29f843232471e79347c10af5a9c413 (patch)
tree1030c7067c9906e213fe71f0bf32ea8d62ba33bb /addressbook
parent7d7e90a1bee57ae3c6ed82a210d5725be15602fa (diff)
downloadgsoc2013-evolution-628b33f28c29f843232471e79347c10af5a9c413.tar.gz
gsoc2013-evolution-628b33f28c29f843232471e79347c10af5a9c413.tar.zst
gsoc2013-evolution-628b33f28c29f843232471e79347c10af5a9c413.zip
Fixed warning
svn path=/trunk/; revision=13390
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/component/addressbook-storage.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/addressbook/gui/component/addressbook-storage.c b/addressbook/gui/component/addressbook-storage.c
index 1a89f86afb..eb2b2bc29a 100644
--- a/addressbook/gui/component/addressbook-storage.c
+++ b/addressbook/gui/component/addressbook-storage.c
@@ -69,7 +69,10 @@
#define ADDRESSBOOK_SOURCES_XML "addressbook-sources.xml"
+#ifdef HAVE_LDAP
static gboolean load_source_data (const char *file_path);
+#endif
+
static gboolean save_source_data (const char *file_path);
static void deregister_storage (void);
@@ -100,7 +103,7 @@ addressbook_storage_setup (EvolutionShellComponent *shell_component,
#ifdef HAVE_LDAP
if (!load_source_data (storage_path))
deregister_storage ();
-#endif
+#endif
}
#ifdef HAVE_LDAP
@@ -206,6 +209,7 @@ deregister_storage (void)
storage = NULL;
}
+#ifdef HAVE_LDAP
static char *
get_string_value (xmlNode *node,
const char *name)
@@ -228,6 +232,7 @@ get_string_value (xmlNode *node,
return retval;
}
+#endif
static char *
ldap_unparse_auth (AddressbookLDAPAuthType auth_type)
@@ -243,6 +248,7 @@ ldap_unparse_auth (AddressbookLDAPAuthType auth_type)
}
}
+#ifdef HAVE_LDAP
static AddressbookLDAPAuthType
ldap_parse_auth (const char *auth)
{
@@ -254,6 +260,7 @@ ldap_parse_auth (const char *auth)
else
return ADDRESSBOOK_LDAP_AUTH_NONE;
}
+#endif
static char *
ldap_unparse_scope (AddressbookLDAPScopeType scope_type)
@@ -271,6 +278,7 @@ ldap_unparse_scope (AddressbookLDAPScopeType scope_type)
}
}
+#ifdef HAVE_LDAP
static AddressbookLDAPScopeType
ldap_parse_scope (const char *scope)
{
@@ -284,6 +292,7 @@ ldap_parse_scope (const char *scope)
else
return ADDRESSBOOK_LDAP_SCOPE_SUBTREE;
}
+#endif
void
addressbook_storage_init_source_uri (AddressbookSource *source)
@@ -296,10 +305,10 @@ addressbook_storage_init_source_uri (AddressbookSource *source)
source->rootdn, ldap_unparse_scope(source->scope));
}
+#ifdef HAVE_LDAP
static gboolean
load_source_data (const char *file_path)
{
-#ifdef HAVE_LDAP
xmlDoc *doc;
xmlNode *root;
xmlNode *child;
@@ -379,9 +388,9 @@ load_source_data (const char *file_path)
deregister_storage();
xmlFreeDoc (doc);
-#endif
return TRUE;
}
+#endif
static void
ldap_source_foreach(AddressbookSource *source, xmlNode *root)