[libsoup] Fix indentation on some code copied from glib



commit ba24747c476428745f25b86ed617e68088ab4418
Author: Dan Winship <danw gnome org>
Date:   Tue May 8 08:25:04 2012 -0400

    Fix indentation on some code copied from glib

 libsoup/soup-message-io.c |   47 ++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 24 deletions(-)
---
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c
index d721c1d..b4456d6 100644
--- a/libsoup/soup-message-io.c
+++ b/libsoup/soup-message-io.c
@@ -711,52 +711,51 @@ message_source_dispatch (GSource     *source,
 			 GSourceFunc  callback,
 			 gpointer     user_data)
 {
-  SoupMessageSourceFunc func = (SoupMessageSourceFunc)callback;
-  SoupMessageSource *message_source = (SoupMessageSource *)source;
+	SoupMessageSourceFunc func = (SoupMessageSourceFunc)callback;
+	SoupMessageSource *message_source = (SoupMessageSource *)source;
 
-  return (*func) (message_source->msg, user_data);
+	return (*func) (message_source->msg, user_data);
 }
 
 static void
 message_source_finalize (GSource *source)
 {
-  SoupMessageSource *message_source = (SoupMessageSource *)source;
+	SoupMessageSource *message_source = (SoupMessageSource *)source;
 
-  g_object_unref (message_source->msg);
+	g_object_unref (message_source->msg);
 }
 
 static gboolean
 message_source_closure_callback (SoupMessage *msg,
 				 gpointer     data)
 {
-  GClosure *closure = data;
+	GClosure *closure = data;
+	GValue param = G_VALUE_INIT;
+	GValue result_value = G_VALUE_INIT;
+	gboolean result;
 
-  GValue param = G_VALUE_INIT;
-  GValue result_value = G_VALUE_INIT;
-  gboolean result;
+	g_value_init (&result_value, G_TYPE_BOOLEAN);
 
-  g_value_init (&result_value, G_TYPE_BOOLEAN);
+	g_value_init (&param, SOUP_TYPE_MESSAGE);
+	g_value_set_object (&param, msg);
 
-  g_value_init (&param, SOUP_TYPE_MESSAGE);
-  g_value_set_object (&param, msg);
+	g_closure_invoke (closure, &result_value, 1, &param, NULL);
 
-  g_closure_invoke (closure, &result_value, 1, &param, NULL);
+	result = g_value_get_boolean (&result_value);
+	g_value_unset (&result_value);
+	g_value_unset (&param);
 
-  result = g_value_get_boolean (&result_value);
-  g_value_unset (&result_value);
-  g_value_unset (&param);
-
-  return result;
+	return result;
 }
 
 static GSourceFuncs message_source_funcs =
 {
-  message_source_prepare,
-  message_source_check,
-  message_source_dispatch,
-  message_source_finalize,
-  (GSourceFunc)message_source_closure_callback,
-  (GSourceDummyMarshal)g_cclosure_marshal_generic,
+	message_source_prepare,
+	message_source_check,
+	message_source_dispatch,
+	message_source_finalize,
+	(GSourceFunc)message_source_closure_callback,
+	(GSourceDummyMarshal)g_cclosure_marshal_generic,
 };
 
 GSource *



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