Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
36052f01
Commit
36052f01
authored
Feb 18, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmpapi: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
119f261b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
Makefile.in
dlls/snmpapi/Makefile.in
+0
-1
main.c
dlls/snmpapi/main.c
+7
-7
No files found.
dlls/snmpapi/Makefile.in
View file @
36052f01
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
snmpapi.dll
IMPORTLIB
=
snmpapi
...
...
dlls/snmpapi/main.c
View file @
36052f01
...
...
@@ -120,7 +120,7 @@ BOOL WINAPI DllMain(
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"(%p,%d,%p)
\n
"
,
hInstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"(%p,%
l
d,%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 %
l
d
\n
"
,
any
->
asnValue
.
number
);
return
;
case
ASN_UNSIGNED32
:
TRACE
(
"Unsigned32 %
l
u
\n
"
,
any
->
asnValue
.
unsigned32
);
return
;
case
ASN_COUNTER32
:
TRACE
(
"Counter32 %
l
u
\n
"
,
any
->
asnValue
.
counter
);
return
;
case
ASN_GAUGE32
:
TRACE
(
"Gauge32 %
l
u
\n
"
,
any
->
asnValue
.
gauge
);
return
;
case
ASN_TIMETICKS
:
TRACE
(
"Timeticks %
l
u
\n
"
,
any
->
asnValue
.
ticks
);
return
;
case
ASN_COUNTER64
:
{
TRACE
(
"Counter64 %
x%08
x
\n
"
,
(
DWORD
)(
any
->
asnValue
.
counter64
.
QuadPart
>>
32
),(
DWORD
)
any
->
asnValue
.
counter64
.
QuadPart
);
TRACE
(
"Counter64 %
lx%08l
x
\n
"
,
(
DWORD
)(
any
->
asnValue
.
counter64
.
QuadPart
>>
32
),(
DWORD
)
any
->
asnValue
.
counter64
.
QuadPart
);
return
;
}
case
ASN_OCTETSTRING
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment