Commit 36052f01 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

snmpapi: Enable compilation with long types.

parent 119f261b
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = snmpapi.dll
IMPORTLIB = snmpapi
......
......@@ -120,7 +120,7 @@ BOOL WINAPI DllMain(
DWORD fdwReason,
LPVOID lpvReserved)
{
TRACE("(%p,%d,%p)\n", hInstDLL, fdwReason, lpvReserved);
TRACE("(%p,%ld,%p)\n", hInstDLL, fdwReason, lpvReserved);
switch(fdwReason) {
case DLL_PROCESS_ATTACH:
......@@ -572,14 +572,14 @@ VOID WINAPI SnmpUtilPrintAsnAny(AsnAny *any)
switch (any->asnType)
{
case ASN_NULL: TRACE("Null value\n"); return;
case ASN_INTEGER32: TRACE("Integer32 %d\n", any->asnValue.number); return;
case ASN_UNSIGNED32: TRACE("Unsigned32 %u\n", any->asnValue.unsigned32); return;
case ASN_COUNTER32: TRACE("Counter32 %u\n", any->asnValue.counter); return;
case ASN_GAUGE32: TRACE("Gauge32 %u\n", any->asnValue.gauge); return;
case ASN_TIMETICKS: TRACE("Timeticks %u\n", any->asnValue.ticks); return;
case ASN_INTEGER32: TRACE("Integer32 %ld\n", any->asnValue.number); return;
case ASN_UNSIGNED32: TRACE("Unsigned32 %lu\n", any->asnValue.unsigned32); return;
case ASN_COUNTER32: TRACE("Counter32 %lu\n", any->asnValue.counter); return;
case ASN_GAUGE32: TRACE("Gauge32 %lu\n", any->asnValue.gauge); return;
case ASN_TIMETICKS: TRACE("Timeticks %lu\n", any->asnValue.ticks); return;
case ASN_COUNTER64:
{
TRACE("Counter64 %x%08x\n", (DWORD)(any->asnValue.counter64.QuadPart>>32),(DWORD)any->asnValue.counter64.QuadPart);
TRACE("Counter64 %lx%08lx\n", (DWORD)(any->asnValue.counter64.QuadPart>>32),(DWORD)any->asnValue.counter64.QuadPart);
return;
}
case ASN_OCTETSTRING:
......
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