* src/commands.c (fatal_error_signal) [W32]: Use %lu for DWORD.

* src/function.c (windows32_openpipe) [W32]: Ditto.

Copyright-paperwork-exempt: yes
This commit is contained in:
U2FsdGVkX1 2021-11-28 15:25:45 -05:00 committed by Paul Smith
parent 35b51df110
commit aa376ad638
2 changed files with 5 additions and 5 deletions

View File

@ -515,12 +515,12 @@ fatal_error_signal (int sig)
DWORD susp_count = SuspendThread (main_thread); DWORD susp_count = SuspendThread (main_thread);
if (susp_count != 0) if (susp_count != 0)
fprintf (stderr, "SuspendThread: suspend count = %ld\n", susp_count); fprintf (stderr, "SuspendThread: suspend count = %lu\n", susp_count);
else if (susp_count == (DWORD)-1) else if (susp_count == (DWORD)-1)
{ {
DWORD ierr = GetLastError (); DWORD ierr = GetLastError ();
fprintf (stderr, "SuspendThread: error %ld: %s\n", fprintf (stderr, "SuspendThread: error %lu: %s\n",
ierr, map_windows32_error_to_string (ierr)); ierr, map_windows32_error_to_string (ierr));
} }
} }

View File

@ -1644,7 +1644,7 @@ windows32_openpipe (int *pipedes, int errfd, pid_t *pid_p, char **command_argv,
if (hIn == INVALID_HANDLE_VALUE) if (hIn == INVALID_HANDLE_VALUE)
{ {
ON (error, NILF, ON (error, NILF,
_("windows32_openpipe: DuplicateHandle(In) failed (e=%ld)\n"), e); _("windows32_openpipe: DuplicateHandle(In) failed (e=%lu)\n"), e);
return -1; return -1;
} }
} }
@ -1668,14 +1668,14 @@ windows32_openpipe (int *pipedes, int errfd, pid_t *pid_p, char **command_argv,
if (hErr == INVALID_HANDLE_VALUE) if (hErr == INVALID_HANDLE_VALUE)
{ {
ON (error, NILF, ON (error, NILF,
_("windows32_openpipe: DuplicateHandle(Err) failed (e=%ld)\n"), e); _("windows32_openpipe: DuplicateHandle(Err) failed (e=%lu)\n"), e);
return -1; return -1;
} }
} }
if (! CreatePipe (&hChildOutRd, &hChildOutWr, &saAttr, 0)) if (! CreatePipe (&hChildOutRd, &hChildOutWr, &saAttr, 0))
{ {
ON (error, NILF, _("CreatePipe() failed (e=%ld)\n"), GetLastError()); ON (error, NILF, _("CreatePipe() failed (e=%lu)\n"), GetLastError());
return -1; return -1;
} }