From fb57ad70ba54e4c0089ab842607fc5cef379df76 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Wed, 18 Jan 2023 17:32:21 -0500 Subject: [PATCH] Fix data types on Windows --- cups/usersys.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cups/usersys.c b/cups/usersys.c index 0c6f94f078..21352bbe46 100644 --- a/cups/usersys.c +++ b/cups/usersys.c @@ -593,7 +593,6 @@ cupsSetUserAgent(const char *user_agent)/* I - User-Agent string or @code NULL@ * Gather Windows version information for the User-Agent string... */ - typedef LONG NTSTATUS, *PNTSTATUS; typedef NTSTATUS(WINAPI * RtlGetVersionPtr)(PRTL_OSVERSIONINFOW); RtlGetVersionPtr RtlGetVersionInternal = (RtlGetVersionPtr)GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "RtlGetVersion"); @@ -632,9 +631,9 @@ cupsSetUserAgent(const char *user_agent)/* I - User-Agent string or @code NULL@ } if (cg->uatokens == _CUPS_UATOKENS_OS) - snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (Windows %u.%u) IPP/2.0", version.dwMajorVersion, version.dwMinorVersion); + snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (Windows %lu.%lu) IPP/2.0", version.dwMajorVersion, version.dwMinorVersion); else - snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (Windows %u.%u; %s) IPP/2.0", version.dwMajorVersion, version.dwMinorVersion, machine); + snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (Windows %lu.%lu; %s) IPP/2.0", version.dwMajorVersion, version.dwMinorVersion, machine); #elif defined(__APPLE__) /* -- 2.47.2