Commit aa0f3794 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

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

parent 2d7cc858
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment