Cast time_t parameters to fprintf(...,"%l",...) to long.
This commit is contained in:
parent
2d7cc858d7
commit
aa0f37940f
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue