[glib] gtimezone: Indentation adn comment fixes
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gtimezone: Indentation adn comment fixes
- Date: Fri, 12 Oct 2012 16:59:08 +0000 (UTC)
commit a1e6ecdfebb213c0b2b6c4c89ea6e5a7521fc6d1
Author: Arnel A. Borja <kyoushuu yahoo com>
Date: Fri Oct 12 09:58:05 2012 -0700
gtimezone: Indentation adn comment fixes
glib/gtimezone.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/glib/gtimezone.c b/glib/gtimezone.c
index 50e7f39..8e9167c 100644
--- a/glib/gtimezone.c
+++ b/glib/gtimezone.c
@@ -372,10 +372,10 @@ g_time_zone_new (const gchar *identifier)
{
gchar *filename;
- /* identifier can be a relative or absolute path name;
- if relative, it is interpreted starting from /usr/share/timezone
- while the POSIX standard says it should start with :,
- glibc allows both syntaxes, so we should too */
+ /* identifier can be a relative or absolute path name;
+ if relative, it is interpreted starting from /usr/share/zoneinfo
+ while the POSIX standard says it should start with :,
+ glibc allows both syntaxes, so we should too */
if (identifier != NULL)
{
const gchar *tzdir;
@@ -384,13 +384,13 @@ g_time_zone_new (const gchar *identifier)
if (tzdir == NULL)
tzdir = "/usr/share/zoneinfo";
- if (*identifier == ':')
- identifier ++;
+ if (*identifier == ':')
+ identifier ++;
- if (g_path_is_absolute (identifier))
- filename = g_strdup (identifier);
- else
- filename = g_build_filename (tzdir, identifier, NULL);
+ if (g_path_is_absolute (identifier))
+ filename = g_strdup (identifier);
+ else
+ filename = g_build_filename (tzdir, identifier, NULL);
}
else
filename = g_strdup ("/etc/localtime");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]