[tracker/libtracker-sparql-porting: 38/46] tracker-utils: Whitespace fixes for tracker-stats.c



commit 5aea9087652fa175d601254d7c6b80d525679c80
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Aug 6 16:55:21 2010 +0200

    tracker-utils: Whitespace fixes for tracker-stats.c

 src/tracker-utils/tracker-stats.c |   36 +++++++++++++++++-------------------
 1 files changed, 17 insertions(+), 19 deletions(-)
---
diff --git a/src/tracker-utils/tracker-stats.c b/src/tracker-utils/tracker-stats.c
index 7b5d9f5..f6c9ecb 100644
--- a/src/tracker-utils/tracker-stats.c
+++ b/src/tracker-utils/tracker-stats.c
@@ -30,10 +30,10 @@
 
 #include <libtracker-sparql/tracker-sparql.h>
 
-#define ABOUT	  \
+#define ABOUT \
 	"Tracker " PACKAGE_VERSION "\n"
 
-#define LICENSE	  \
+#define LICENSE \
 	"This program is free software and comes without any warranty.\n" \
 	"It is licensed under version 2 or later of the General Public " \
 	"License which can be viewed at:\n" \
@@ -95,7 +95,7 @@ main (int argc, char **argv)
 		return EXIT_FAILURE;
 	}
 
-        cursor = tracker_sparql_connection_statistics (connection, NULL, &error);
+	cursor = tracker_sparql_connection_statistics (connection, NULL, &error);
 
 	if (error) {
 		g_printerr ("%s, %s\n",
@@ -106,28 +106,26 @@ main (int argc, char **argv)
 	}
 
 	if (!cursor) {
-		g_print ("%s\n",
-		         _("No statistics available"));
+		g_print ("%s\n", _("No statistics available"));
 	} else {
-                gint count = 0;
+		gint count = 0;
 
-		g_print ("%s\n",
-		         _("Statistics:"));
+		g_print ("%s\n", _("Statistics:"));
 
-                while (tracker_sparql_cursor_next (cursor, NULL, NULL)) {
-                        g_print ("  %s = %s\n",
-                                 tracker_sparql_cursor_get_string (cursor, 0, NULL),
-                                 tracker_sparql_cursor_get_string (cursor, 1, NULL));
-                        count++;
-                }
+		while (tracker_sparql_cursor_next (cursor, NULL, NULL)) {
+			g_print ("  %s = %s\n",
+			         tracker_sparql_cursor_get_string (cursor, 0, NULL),
+			         tracker_sparql_cursor_get_string (cursor, 1, NULL));
+			count++;
+		}
 
-                if (count == 0) {
-                        g_print ("  %s\n", _("None"));
-                }
+		if (count == 0) {
+			g_print ("  %s\n", _("None"));
+		}
 
-                g_print ("\n");
+		g_print ("\n");
 
-                g_object_unref (cursor);
+		g_object_unref (cursor);
 	}
 
 	g_object_unref (connection);



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