small cleanup

svn path=/trunk/; revision=5465
This commit is contained in:
Matthias Clasen 2007-04-27 22:37:49 +00:00
parent 7919d52cd6
commit 94b419c3e0
2 changed files with 12 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2007-04-27 Matthias Clasen <mclasen@redhat.com>
* glib/gstrfuncs.c: small coding style cleanups.
2007-04-27 Chris Wilson <chris@chris-wilson.co.uk> 2007-04-27 Chris Wilson <chris@chris-wilson.co.uk>
* glib/gregex.h: Remove trailing comma at end of enumerator list. * glib/gregex.h: Remove trailing comma at end of enumerator list.

View File

@ -610,13 +610,12 @@ g_ascii_formatd (gchar *buffer,
{ {
*p = '.'; *p = '.';
p++; p++;
if (decimal_point_len > 1) { if (decimal_point_len > 1)
rest_len = strlen (p + (decimal_point_len-1)); {
memmove (p, p + (decimal_point_len-1), rest_len = strlen (p + (decimal_point_len-1));
rest_len); memmove (p, p + (decimal_point_len-1), rest_len);
p[rest_len] = 0; p[rest_len] = 0;
}
}
} }
} }
@ -2428,8 +2427,8 @@ g_strfreev (gchar **str_array)
{ {
int i; int i;
for(i = 0; str_array[i] != NULL; i++) for (i = 0; str_array[i] != NULL; i++)
g_free(str_array[i]); g_free (str_array[i]);
g_free (str_array); g_free (str_array);
} }