[couchdb-glib: 1/6] Use couchdb_get_hostname()



commit 6cf6dac1c6fa95ff85958462c8288c7194038018
Author: Johan Dahlin <johan gnome org>
Date:   Tue Dec 8 22:07:51 2009 -0200

    Use couchdb_get_hostname()
    
    Instead of accessing a private variable.

 couchdb-glib/dbwatch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/couchdb-glib/dbwatch.c b/couchdb-glib/dbwatch.c
index dade2d2..28faf67 100644
--- a/couchdb-glib/dbwatch.c
+++ b/couchdb-glib/dbwatch.c
@@ -124,7 +124,7 @@ dbwatch_new (CouchDB *couchdb, const gchar *dbname, gint update_seq)
 	watch->last_update_seq = update_seq;
 
 	/* Set timeout to check for changes every 5 minutes*/
-	if (g_str_has_prefix (watch->couchdb->hostname, "http://127.0.0.1";))
+	if (g_str_has_prefix (couchdb_get_hostname (watch->couchdb), "http://127.0.0.1";))
 		timeout = LOCAL_TIMEOUT_SECONDS;
 	else
 		timeout = REMOTE_TIMEOUT_SECONDS;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]