[Telepathy-commits] [telepathy-doc/master] Minor changes

Murray Cumming (none) murrayc at murrayc-x61
Sun Sep 28 05:51:03 PDT 2008


---
 docs/examples/list_all_protocols/main.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/examples/list_all_protocols/main.c b/docs/examples/list_all_protocols/main.c
index 7f06a41..42c4b52 100644
--- a/docs/examples/list_all_protocols/main.c
+++ b/docs/examples/list_all_protocols/main.c
@@ -71,13 +71,13 @@ on_connection_manager_got_info (TpConnectionManager *cm,
 
 /* A callback handler. */
 static void
-on_list_connection_managers(TpConnectionManager * const *connection_manager,
-                            gsize n_cms,
+on_list_connection_managers(TpConnectionManager * const *connection_managers,
+                            gsize n_cms, /* TODO: Why do we have this if it is NULL-terminated? */
                             const GError *error,
                             gpointer user_data,
-                            GObject *weak_object)
+                            GObject *weak_object) /* TODO: What is this good for? */
 {
-  if (error != NULL)
+  if (error)
     {
       g_warning ("%s", error->message);
       
@@ -88,12 +88,12 @@ on_list_connection_managers(TpConnectionManager * const *connection_manager,
 
   g_printf ("Found %" G_GSIZE_FORMAT " connection managers:\n", n_cms);
 
-  if(!connection_manager)
+  if(!connection_managers)
     return;
 
   //TODO: See http://bugs.freedesktop.org/show_bug.cgi?id=17115
   //about the awkwardness of these pointers to pointers:
-  TpConnectionManager * const *cm_iter = connection_manager;
+  TpConnectionManager * const *cm_iter = connection_managers;
   for (; *cm_iter != NULL; ++cm_iter)
     {
       const TpConnectionManager *cm = *cm_iter;
-- 
1.5.6.5



More information about the Telepathy-commits mailing list