Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ea6eea0b
Commit
ea6eea0b
authored
Aug 22, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Make bsearch() callback functions cdecl.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4c018c32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.c
dlls/inetmib1/main.c
+4
-4
No files found.
dlls/inetmib1/main.c
View file @
ea6eea0b
...
...
@@ -318,7 +318,7 @@ static DWORD oidToIpAddr(AsnObjectIdentifier *oid)
}
typedef
void
(
*
oidToKeyFunc
)(
AsnObjectIdentifier
*
oid
,
void
*
dst
);
typedef
int
(
*
compareFunc
)(
const
void
*
key
,
const
void
*
value
);
typedef
int
(
__cdecl
*
compareFunc
)(
const
void
*
key
,
const
void
*
value
);
/* Finds the first value in the table that matches key. Returns its 1-based
* index if found, or 0 if not found.
...
...
@@ -769,7 +769,7 @@ static void oidToIpAddrRow(AsnObjectIdentifier *oid, void *dst)
row
->
dwAddr
=
oidToIpAddr
(
oid
);
}
static
int
compareIpAddrRow
(
const
void
*
a
,
const
void
*
b
)
static
int
__cdecl
compareIpAddrRow
(
const
void
*
a
,
const
void
*
b
)
{
const
MIB_IPADDRROW
*
key
=
a
,
*
value
=
b
;
...
...
@@ -862,7 +862,7 @@ static void oidToIpForwardRow(AsnObjectIdentifier *oid, void *dst)
row
->
dwForwardDest
=
oidToIpAddr
(
oid
);
}
static
int
compareIpForwardRow
(
const
void
*
a
,
const
void
*
b
)
static
int
__cdecl
compareIpForwardRow
(
const
void
*
a
,
const
void
*
b
)
{
const
MIB_IPFORWARDROW
*
key
=
a
,
*
value
=
b
;
...
...
@@ -1220,7 +1220,7 @@ static void oidToUdpRow(AsnObjectIdentifier *oid, void *dst)
row
->
dwLocalPort
=
oid
->
ids
[
4
];
}
static
int
compareUdpRow
(
const
void
*
a
,
const
void
*
b
)
static
int
__cdecl
compareUdpRow
(
const
void
*
a
,
const
void
*
b
)
{
const
MIB_UDPROW
*
key
=
a
,
*
value
=
b
;
int
ret
;
...
...
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