Hi, Can anyone help me figure out the problem I'm having with a function call?
I have a header file, which sets an enum:
typedef enum {INFO, WARNING, FATAL} Levels;
int log_event (Levels, char *fmt, ...);
..then the function is called this way:
log_event(INFO, "Message text");
...then the function:
int log_event(int Level, char *string_fmt) {
Every time I try to build this, I get an error, "conflicting types for log_event".
I've tried changing Level to a char, enum, Levels, and everything else I could think of, but no luck.
Can anyone shed some light on this?
-Steve