summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-12-06 20:41:09 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-12-06 20:41:19 +0100
commit64662ff2ce0cbadeb8a596eee63667bc0e5130e4 (patch)
tree580d6e1abcee135e267da8983426344bae1232a4
parentdb51503b6481577daead9e8534fec002d4d09e89 (diff)
downloadcalcurse-64662ff2ce0cbadeb8a596eee63667bc0e5130e4.tar.gz
calcurse-64662ff2ce0cbadeb8a596eee63667bc0e5130e4.zip
Fix two enumeration types in function signatures
Spotted with clang and "-Wconversion". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/ical.c2
-rw-r--r--src/io.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ical.c b/src/ical.c
index 18c6bb5..d34ef38 100644
--- a/src/ical.c
+++ b/src/ical.c
@@ -773,7 +773,7 @@ ical_read_exdate(llist_t * exc, FILE * log, char *exstr, unsigned *noskipped,
/* Return an allocated string containing the name of the newly created note. */
static char *ical_read_note(char *line, unsigned *noskipped,
- ical_vevent_e item_type, const int itemline,
+ ical_types_e item_type, const int itemline,
FILE * log)
{
char *p, *notestr, *note;
diff --git a/src/io.c b/src/io.c
index 884e3a9..bef4c55 100644
--- a/src/io.c
+++ b/src/io.c
@@ -932,7 +932,7 @@ void io_export_data(enum export_type type)
}
}
-static FILE *get_import_stream(enum export_type type)
+static FILE *get_import_stream(enum import_type type)
{
FILE *stream = NULL;
char *stream_name;