[glib] Whitespace fixes
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Whitespace fixes
- Date: Mon, 6 Sep 2010 11:26:49 +0000 (UTC)
commit 2aa135ee3d7b0a3e3140ce994ef0f554cadf9ab4
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Sep 6 12:26:40 2010 +0100
Whitespace fixes
glib/gdatetime.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/glib/gdatetime.c b/glib/gdatetime.c
index 2c27b7c..6e8e220 100644
--- a/glib/gdatetime.c
+++ b/glib/gdatetime.c
@@ -283,8 +283,8 @@ get_weekday_name_abbr (gint day)
static inline gint
date_to_proleptic_gregorian (gint year,
- gint month,
- gint day)
+ gint month,
+ gint day)
{
gint64 days;
@@ -584,7 +584,7 @@ g_time_zone_new_from_epoch (const gchar *tz_name,
#define SECS_PER_JULIAN (DAYS_PER_PERIOD * SECS_PER_DAY)
static gint64
-g_date_time_secs_offset (const GDateTime * dt)
+g_date_time_secs_offset (const GDateTime *dt)
{
gint64 secs;
gint d, y, h, m, s;
@@ -1334,12 +1334,14 @@ g_date_time_get_dmy (const GDateTime *datetime,
the_month = (remaining_days + 50) >> 5;
preceding = (days_in_year[0][the_month - 1] + (the_month > 2 && leap));
- if (preceding > remaining_days) {
- /* estimate is too large */
- the_month -= 1;
- preceding -= leap ? days_in_months[1][the_month] :
- days_in_months[0][the_month];
- }
+ if (preceding > remaining_days)
+ {
+ /* estimate is too large */
+ the_month -= 1;
+ preceding -= leap ? days_in_months[1][the_month]
+ : days_in_months[0][the_month];
+ }
+
remaining_days -= preceding;
g_assert(0 <= remaining_days);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]