[dconf/wip/reorg: 4/7] gvdb-reader: correct whitespace damage
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf/wip/reorg: 4/7] gvdb-reader: correct whitespace damage
- Date: Fri, 6 Jul 2012 04:03:05 +0000 (UTC)
commit 4e77b52ad8fd5342978fd8be6aff19f13beda0ef
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Jul 5 19:13:58 2012 -0400
gvdb-reader: correct whitespace damage
gvdb-reader.c | 66 ++++++++++++++++++++++++++++----------------------------
1 files changed, 33 insertions(+), 33 deletions(-)
---
diff --git a/gvdb-reader.c b/gvdb-reader.c
index dfdb447..81b8e6b 100644
--- a/gvdb-reader.c
+++ b/gvdb-reader.c
@@ -128,13 +128,13 @@ gvdb_table_setup_root (GvdbTable *file,
static GvdbTable *
new_from_data (const void *data,
- gsize data_len,
- gboolean trusted,
- gpointer user_data,
- GvdbRefFunc ref,
- GDestroyNotify unref,
- const char *filename,
- GError **error)
+ gsize data_len,
+ gboolean trusted,
+ gpointer user_data,
+ GvdbRefFunc ref,
+ GDestroyNotify unref,
+ const char *filename,
+ GError **error)
{
GvdbTable *file;
@@ -163,15 +163,15 @@ new_from_data (const void *data,
else
{
- if (filename)
- g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_INVAL,
- "%s: invalid header", filename);
- else
- g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_INVAL,
- "invalid gvdb header");
+ if (filename)
+ g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_INVAL,
+ "%s: invalid header", filename);
+ else
+ g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_INVAL,
+ "invalid gvdb header");
g_slice_free (GvdbTable, file);
- if (unref)
- unref (user_data);
+ if (unref)
+ unref (user_data);
return NULL;
}
@@ -213,13 +213,13 @@ gvdb_table_new (const gchar *filename,
return NULL;
return new_from_data (g_mapped_file_get_contents (mapped),
- g_mapped_file_get_length (mapped),
- trusted,
- mapped,
- (GvdbRefFunc)g_mapped_file_ref,
- (GDestroyNotify)g_mapped_file_unref,
- filename,
- error);
+ g_mapped_file_get_length (mapped),
+ trusted,
+ mapped,
+ (GvdbRefFunc)g_mapped_file_ref,
+ (GDestroyNotify)g_mapped_file_unref,
+ filename,
+ error);
}
/**
@@ -242,18 +242,18 @@ gvdb_table_new (const gchar *filename,
**/
GvdbTable *
gvdb_table_new_from_data (const void *data,
- gsize data_len,
- gboolean trusted,
- gpointer user_data,
- GvdbRefFunc ref,
- GDestroyNotify unref,
- GError **error)
+ gsize data_len,
+ gboolean trusted,
+ gpointer user_data,
+ GvdbRefFunc ref,
+ GDestroyNotify unref,
+ GError **error)
{
return new_from_data (data, data_len,
- trusted,
- user_data, ref, unref,
- NULL,
- error);
+ trusted,
+ user_data, ref, unref,
+ NULL,
+ error);
}
static gboolean
@@ -618,7 +618,7 @@ gvdb_table_unref (GvdbTable *file)
if (g_atomic_int_dec_and_test (&file->ref_count))
{
if (file->unref_user_data)
- file->unref_user_data (file->user_data);
+ file->unref_user_data (file->user_data);
g_slice_free (GvdbTable, file);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]