aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-datespec.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2007-10-26 16:07:25 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2007-10-26 16:07:25 +0800
commitac2923d34b8eae31908ee1c4611fab81ff5419ba (patch)
treed34165e6bd4f28c538ed5a2755c7276bee660ddc /filter/filter-datespec.c
parent27f2852a2724aee617ef669587c8663dcbe40c27 (diff)
downloadgsoc2013-evolution-ac2923d34b8eae31908ee1c4611fab81ff5419ba.tar
gsoc2013-evolution-ac2923d34b8eae31908ee1c4611fab81ff5419ba.tar.gz
gsoc2013-evolution-ac2923d34b8eae31908ee1c4611fab81ff5419ba.tar.bz2
gsoc2013-evolution-ac2923d34b8eae31908ee1c4611fab81ff5419ba.tar.lz
gsoc2013-evolution-ac2923d34b8eae31908ee1c4611fab81ff5419ba.tar.xz
gsoc2013-evolution-ac2923d34b8eae31908ee1c4611fab81ff5419ba.tar.zst
gsoc2013-evolution-ac2923d34b8eae31908ee1c4611fab81ff5419ba.zip
Warning fixes: - NULL vs 0 - ANSIfication of declarations - mixing code
2007-10-26 Kjartan Maraas <kmaraas@gnome.org> * filter-datespec.c: (set_values): * filter-rule.c: (filter_rule_get_type), (filter_rule_new), (rule_copy): * rule-editor.c: (editor_response), (rule_delete), (rule_move): Warning fixes: - NULL vs 0 - ANSIfication of declarations - mixing code and declarations svn path=/trunk/; revision=34429
Diffstat (limited to 'filter/filter-datespec.c')
-rw-r--r--filter/filter-datespec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/filter-datespec.c b/filter/filter-datespec.c
index 5ec80cdf9d..328b7597dd 100644
--- a/filter/filter-datespec.c
+++ b/filter/filter-datespec.c
@@ -359,11 +359,13 @@ get_values (FilterDatespec *fds)
static void
set_values (FilterDatespec *fds)
{
+ int note_type;
+
struct _FilterDatespecPrivate *p = PRIV(fds);
p->type = fds->type==FDST_UNKNOWN ? FDST_NOW : fds->type;
- int note_type = fds->type==FDST_X_FUTURE ? FDST_X_AGO : fds->type; // FUTURE and AGO use the same notebook pages/etc.
+ note_type = fds->type==FDST_X_FUTURE ? FDST_X_AGO : fds->type; // FUTURE and AGO use the same notebook pages/etc.
switch (p->type) {
case FDST_NOW: