From 94b419c3e0be8d75eff74a6738f4a427e749618a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 27 Apr 2007 22:37:49 +0000 Subject: [PATCH] small cleanup svn path=/trunk/; revision=5465 --- ChangeLog | 4 ++++ glib/gstrfuncs.c | 17 ++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 655212222..775f37de0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-04-27 Matthias Clasen + + * glib/gstrfuncs.c: small coding style cleanups. + 2007-04-27 Chris Wilson * glib/gregex.h: Remove trailing comma at end of enumerator list. diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index d95c85d8e..c75daad6d 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -610,13 +610,12 @@ g_ascii_formatd (gchar *buffer, { *p = '.'; p++; - if (decimal_point_len > 1) { - rest_len = strlen (p + (decimal_point_len-1)); - memmove (p, p + (decimal_point_len-1), - rest_len); - p[rest_len] = 0; - - } + if (decimal_point_len > 1) + { + rest_len = strlen (p + (decimal_point_len-1)); + memmove (p, p + (decimal_point_len-1), rest_len); + p[rest_len] = 0; + } } } @@ -2428,8 +2427,8 @@ g_strfreev (gchar **str_array) { int i; - for(i = 0; str_array[i] != NULL; i++) - g_free(str_array[i]); + for (i = 0; str_array[i] != NULL; i++) + g_free (str_array[i]); g_free (str_array); }