Cast time_t parameters to fprintf(...,"%l",...) to long.

This commit is contained in:
Gerald Pfeifer 2003-10-02 04:29:30 +00:00 committed by Alexandre Julliard
parent 2d7cc858d7
commit aa0f37940f
2 changed files with 5 additions and 4 deletions

View File

@ -831,8 +831,9 @@ NTSTATUS WINAPI NtSetSystemTime(const LARGE_INTEGER *NewTime, LARGE_INTEGER *Old
ERR("Cannot set time to %d/%d/%d %d:%d:%d Time adjustment %ld %s\n",
tf.Year, tf.Month, tf.Day, tf.Hour, tf.Minute, tf.Second,
sec-oldsec, err == -1 ? "No Permission" :
sec == (time_t)-1 ? "" : "is too large." );
(long)(sec-oldsec),
err == -1 ? "No Permission"
: sec == (time_t)-1 ? "" : "is too large." );
if(err == 2)
return STATUS_INVALID_PARAMETER;

View File

@ -170,8 +170,8 @@ void write_h_file(const char *fname)
cptr = ctime(&now);
killnl(cptr, 0);
fprintf(fp, str_header, input_name ? input_name : "<stdin>", cmdline, cptr);
fprintf(fp, "#ifndef __WMCGENERATED_%08lx_H\n", now);
fprintf(fp, "#define __WMCGENERATED_%08lx_H\n", now);
fprintf(fp, "#ifndef __WMCGENERATED_%08lx_H\n", (long)now);
fprintf(fp, "#define __WMCGENERATED_%08lx_H\n", (long)now);
fprintf(fp, "\n");
/* Write severity and facility aliases */