about summary refs log tree commit diff
path: root/libnm-util/nm-param-spec-specialized.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-util/nm-param-spec-specialized.c')
-rw-r--r--libnm-util/nm-param-spec-specialized.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/libnm-util/nm-param-spec-specialized.c b/libnm-util/nm-param-spec-specialized.c
index 27e498b5..acb8aec3 100644
--- a/libnm-util/nm-param-spec-specialized.c
+++ b/libnm-util/nm-param-spec-specialized.c
@@ -1,9 +1,6 @@
 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
 
 /*
- * Dan Williams <dcbw@redhat.com>
- * Tambet Ingo <tambet@gmail.com>
- *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
@@ -19,10 +16,12 @@
  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  * Boston, MA 02110-1301 USA.
  *
- * (C) Copyright 2007 - 2011 Red Hat, Inc.
- * (C) Copyright 2007 - 2008 Novell, Inc.
+ * Copyright 2007 - 2011 Red Hat, Inc.
+ * Copyright 2007 - 2008 Novell, Inc.
  */
 
+#include "config.h"
+
 #include "nm-param-spec-specialized.h"
 #include "nm-glib-compat.h"
 
@@ -246,7 +245,7 @@ static void
 iterate_collection (const GValue *value, gpointer user_data)
 {
 	GSList **list = (GSList **) user_data;
-	
+
 	*list = g_slist_prepend (*list, _gvalue_dup (value));
 }
 
@@ -286,8 +285,8 @@ _gvalues_compare_collection (const GValue *value1, const GValue *value2)
 			GSList *iter2;
 
 			for (iter1 = list1, iter2 = list2, ret = 0;
-				ret == 0 && iter1 && iter2; 
-				iter1 = iter1->next, iter2 = iter2->next)
+			     ret == 0 && iter1 && iter2;
+			     iter1 = iter1->next, iter2 = iter2->next)
 				ret = _gvalues_compare ((GValue *) iter1->data, (GValue *) iter2->data);
 		}
 
@@ -300,8 +299,8 @@ _gvalues_compare_collection (const GValue *value1, const GValue *value2)
 
 static void
 iterate_map (const GValue *key_val,
-		   const GValue *value_val,
-		   gpointer user_data)
+             const GValue *value_val,
+             gpointer user_data)
 {
 	GHashTable **hash = (GHashTable **) user_data;
 
@@ -340,7 +339,7 @@ _gvalues_compare_map (const GValue *value1, const GValue *value2)
 
 	if (dbus_g_type_get_map_key_specialization (G_VALUE_TYPE (value1)) != G_TYPE_STRING) {
 		g_warning ("Can not compare maps with '%s' for keys",
-				 g_type_name (dbus_g_type_get_map_key_specialization (G_VALUE_TYPE (value1))));
+		           g_type_name (dbus_g_type_get_map_key_specialization (G_VALUE_TYPE (value1))));
 		return 0;
 	}
 
@@ -528,7 +527,7 @@ _gvalues_compare (const GValue *value1, const GValue *value2)
 
 	if (type_is_fixed_size (type1, NULL))
 		ret = _gvalues_compare_fixed (value1, value2);
-	else if (type1 == G_TYPE_STRING) 
+	else if (type1 == G_TYPE_STRING)
 		ret = _gvalues_compare_string (value1, value2);
 	else if (G_VALUE_HOLDS_BOXED (value1)) {
 		gpointer p1 = g_value_get_boxed (value1);
@@ -592,8 +591,8 @@ param_specialized_validate (GParamSpec *pspec, GValue *value)
 
 static gint
 param_specialized_values_cmp (GParamSpec *pspec,
-						const GValue *value1,
-						const GValue *value2)
+                              const GValue *value1,
+                              const GValue *value2)
 {
 	return _gvalues_compare (value1, value2);
 }
@@ -622,17 +621,17 @@ _nm_param_spec_specialized_get_type (void)
 
 GParamSpec *
 _nm_param_spec_specialized (const char *name,
-					  const char *nick,
-					  const char *blurb,
-					  GType specialized_type,
-					  GParamFlags flags)
+                            const char *nick,
+                            const char *blurb,
+                            GType specialized_type,
+                            GParamFlags flags)
 {
 	NMParamSpecSpecialized *pspec;
 
 	g_return_val_if_fail (g_type_is_a (specialized_type, G_TYPE_BOXED), NULL);
 
 	pspec = g_param_spec_internal (NM_TYPE_PARAM_SPEC_SPECIALIZED,
-							 name, nick, blurb, flags);
+	                               name, nick, blurb, flags);
 
 	G_PARAM_SPEC (pspec)->value_type = specialized_type;