Silence warning

Cast the result of the operation to long, not the time(NULL) call. On systems
where sizeof(time_t) is other than long this will produce a warning.