X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mm.c;h=902e41f0d59cc40589f7cf8aa1254a1811b5b08f;hp=57121a1c0a93a38e56b8fddcf530b61201a8f2e4;hb=e70beecd3fa6378aadf8773660741873023befcf;hpb=ffb2eaa90429f6d5c3d369509efcdf91c5463dad diff --git a/mm.c b/mm.c index 57121a1c..902e41f0 100644 --- a/mm.c +++ b/mm.c @@ -1,12 +1,11 @@ /* - * Copyright (C) 2007-2010 Andre Noll + * Copyright (C) 2007 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file mm.c Paraslash's mood methods. */ -#include #include #include #include @@ -32,7 +31,7 @@ enum mood_comparator_id {MOOD_COMPARATORS NUM_MOOD_COMPARATORS}; #undef MC #define MC(a, b) # b, -static const char const *mood_comparators[] = {MOOD_COMPARATORS}; +static const char *mood_comparators[] = {MOOD_COMPARATORS}; #undef MC static int parse_mood_comparator(const char *word) @@ -204,7 +203,7 @@ struct mm_year_data { static int mm_year_parser(int argc, char **argv, void **private) { - int ret = -E_MOOD_SYNTAX; + int ret; struct mm_year_data *mmyd = para_malloc(sizeof(*mmyd)); time_t current_time; struct tm *gmt;