int * yy;
int * mm;
int * dd;
{
struct tm t;
t.tm_year = yy;
t.tm_mon = mm;
t.tm_day = dd;
t.tm_sec = 0;
t.tm_min = 0;
t.tm_hour = 0;
t.tm_isdst = 0;
return gen_ib_date(&t);
};
Wedit output window build: Fri Jun 12 22:15:13 2009
Error e:\c\freeudflibc\date_functions.c: 83 extraneous old-style
parameter list
Error e:\c\freeudflibc\date_functions.c: 88 unrecognized declaration
What is happening here?
^^^
erase that extraneous ";" after the function definition
Better yet, use prototypes rather than old-style function definitions:
ISC_QUAD *encode_date(int *yy, int *mm, int *dd)
{
/* ... */
}
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"