diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-06-02 07:09:19 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-02 22:35:03 +0800 |
commit | 433eac7844481b8ceda0bae8bf08f6bb623185b0 (patch) | |
tree | d66a04ad4fa676b4bfce762dee09a82f4434d374 /filter/filter-datespec.c | |
parent | e6c6cbdfb5fd5723ff840b24b29690235be0d74d (diff) | |
download | gsoc2013-evolution-433eac7844481b8ceda0bae8bf08f6bb623185b0.tar.gz gsoc2013-evolution-433eac7844481b8ceda0bae8bf08f6bb623185b0.tar.zst gsoc2013-evolution-433eac7844481b8ceda0bae8bf08f6bb623185b0.zip |
More code cleanup.
Diffstat (limited to 'filter/filter-datespec.c')
-rw-r--r-- | filter/filter-datespec.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/filter/filter-datespec.c b/filter/filter-datespec.c index 4ab85d36bf..a7ef49981e 100644 --- a/filter/filter-datespec.c +++ b/filter/filter-datespec.c @@ -66,7 +66,7 @@ typedef struct _timespan { const gchar *past_plural; const gchar *future_singular; const gchar *future_plural; - float max; + gfloat max; } timespan; #ifdef ngettext @@ -195,7 +195,7 @@ validate (FilterElement *fe) return valid; } -static int +static gint date_eq (FilterElement *fe, FilterElement *cm) { FilterDatespec *fd = (FilterDatespec *)fe, *cd = (FilterDatespec *)cm; @@ -228,13 +228,13 @@ xml_encode (FilterElement *fe) work = xmlNewChild (value, NULL, (const guchar *)"datespec", NULL); sprintf (str, "%d", fds->type); xmlSetProp (work, (const guchar *)"type", (guchar *)str); - sprintf (str, "%d", (int)fds->value); + sprintf (str, "%d", (gint)fds->value); xmlSetProp (work, (const guchar *)"value", (guchar *)str); return value; } -static int +static gint xml_decode (FilterElement *fe, xmlNodePtr node) { FilterDatespec *fds = (FilterDatespec *)fe; @@ -263,7 +263,7 @@ xml_decode (FilterElement *fe, xmlNodePtr node) return 0; } -static int +static gint get_best_span (time_t val) { gint i; @@ -508,13 +508,13 @@ format_sexp (FilterElement *fe, GString *out) g_string_append (out, "(get-current-date)"); break; case FDST_SPECIFIED: - g_string_append_printf (out, "%d", (int) fds->value); + g_string_append_printf (out, "%d", (gint) fds->value); break; case FDST_X_AGO: - g_string_append_printf (out, "(- (get-current-date) %d)", (int) fds->value); + g_string_append_printf (out, "(- (get-current-date) %d)", (gint) fds->value); break; case FDST_X_FUTURE: - g_string_append_printf (out, "(+ (get-current-date) %d)", (int) fds->value); + g_string_append_printf (out, "(+ (get-current-date) %d)", (gint) fds->value); break; } } |