mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
gtimezone: Indentation adn comment fixes
This commit is contained in:
parent
04aead8a42
commit
c03b542a94
@ -372,10 +372,10 @@ g_time_zone_new (const gchar *identifier)
|
|||||||
{
|
{
|
||||||
gchar *filename;
|
gchar *filename;
|
||||||
|
|
||||||
/* identifier can be a relative or absolute path name;
|
/* identifier can be a relative or absolute path name;
|
||||||
if relative, it is interpreted starting from /usr/share/timezone
|
if relative, it is interpreted starting from /usr/share/zoneinfo
|
||||||
while the POSIX standard says it should start with :,
|
while the POSIX standard says it should start with :,
|
||||||
glibc allows both syntaxes, so we should too */
|
glibc allows both syntaxes, so we should too */
|
||||||
if (identifier != NULL)
|
if (identifier != NULL)
|
||||||
{
|
{
|
||||||
const gchar *tzdir;
|
const gchar *tzdir;
|
||||||
@ -384,13 +384,13 @@ g_time_zone_new (const gchar *identifier)
|
|||||||
if (tzdir == NULL)
|
if (tzdir == NULL)
|
||||||
tzdir = "/usr/share/zoneinfo";
|
tzdir = "/usr/share/zoneinfo";
|
||||||
|
|
||||||
if (*identifier == ':')
|
if (*identifier == ':')
|
||||||
identifier ++;
|
identifier ++;
|
||||||
|
|
||||||
if (g_path_is_absolute (identifier))
|
if (g_path_is_absolute (identifier))
|
||||||
filename = g_strdup (identifier);
|
filename = g_strdup (identifier);
|
||||||
else
|
else
|
||||||
filename = g_build_filename (tzdir, identifier, NULL);
|
filename = g_build_filename (tzdir, identifier, NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
filename = g_strdup ("/etc/localtime");
|
filename = g_strdup ("/etc/localtime");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user