Im getting an error when compiling that says "assignments makes integer from pointer without a cast". For all three assignment statements.

Code:
if (res == 0){
         day = current_day;
         mon = current_month;
         year = current_year;
current_day
Current_month and
current_year are all in another file, that i have #included.