From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Wed, 18 Jan 2023 22:32:21 +0000 (-0500) Subject: Fix data types on Windows X-Git-Tag: v2.4.3~69^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F588%2Fhead;p=thirdparty%2Fcups.git Fix data types on Windows --- 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__) /*