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
eb087ae8
Commit
eb087ae8
authored
May 22, 2011
by
Gerald Pfeifer
Committed by
Alexandre Julliard
May 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Remove unused parameter pPduType from mapStructEntryToValue.
parent
619f6dcc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
main.c
dlls/inetmib1/main.c
+10
-10
No files found.
dlls/inetmib1/main.c
View file @
eb087ae8
...
...
@@ -59,7 +59,7 @@ struct structToAsnValue
};
static
AsnInteger32
mapStructEntryToValue
(
struct
structToAsnValue
*
map
,
UINT
mapLen
,
void
*
record
,
UINT
id
,
BYTE
bPduType
,
SnmpVarBind
*
pVarBind
)
UINT
mapLen
,
void
*
record
,
UINT
id
,
SnmpVarBind
*
pVarBind
)
{
/* OIDs are 1-based */
if
(
!
id
)
...
...
@@ -640,7 +640,7 @@ static BOOL mib2IfEntryQuery(BYTE bPduType, SnmpVarBind *pVarBind,
{
*
pErrorStatus
=
mapStructEntryToValue
(
mib2IfEntryMap
,
DEFINE_SIZEOF
(
mib2IfEntryMap
),
&
ifTable
->
table
[
tableIndex
-
1
],
item
,
bPduType
,
&
ifTable
->
table
[
tableIndex
-
1
],
item
,
pVarBind
);
if
(
bPduType
==
SNMP_PDU_GETNEXT
)
ret
=
setOidWithItemAndInteger
(
&
pVarBind
->
name
,
...
...
@@ -713,7 +713,7 @@ static BOOL mib2IpStatsQuery(BYTE bPduType, SnmpVarBind *pVarBind,
if
(
!*
pErrorStatus
)
{
*
pErrorStatus
=
mapStructEntryToValue
(
mib2IpMap
,
DEFINE_SIZEOF
(
mib2IpMap
),
&
ipStats
,
item
,
bPduType
,
pVarBind
);
DEFINE_SIZEOF
(
mib2IpMap
),
&
ipStats
,
item
,
pVarBind
);
if
(
!*
pErrorStatus
&&
bPduType
==
SNMP_PDU_GETNEXT
)
ret
=
setOidWithItem
(
&
pVarBind
->
name
,
&
myOid
,
item
);
}
...
...
@@ -798,7 +798,7 @@ static BOOL mib2IpAddrQuery(BYTE bPduType, SnmpVarBind *pVarBind,
assert
(
item
);
*
pErrorStatus
=
mapStructEntryToValue
(
mib2IpAddrMap
,
DEFINE_SIZEOF
(
mib2IpAddrMap
),
&
ipAddrTable
->
table
[
tableIndex
-
1
],
item
,
bPduType
,
pVarBind
);
&
ipAddrTable
->
table
[
tableIndex
-
1
],
item
,
pVarBind
);
if
(
!*
pErrorStatus
&&
bPduType
==
SNMP_PDU_GETNEXT
)
ret
=
setOidWithItemAndIpAddr
(
&
pVarBind
->
name
,
&
myOid
,
item
,
ipAddrTable
->
table
[
tableIndex
-
1
].
dwAddr
);
...
...
@@ -891,7 +891,7 @@ static BOOL mib2IpRouteQuery(BYTE bPduType, SnmpVarBind *pVarBind,
assert
(
item
);
*
pErrorStatus
=
mapStructEntryToValue
(
mib2IpRouteMap
,
DEFINE_SIZEOF
(
mib2IpRouteMap
),
&
ipRouteTable
->
table
[
tableIndex
-
1
],
item
,
bPduType
,
pVarBind
);
&
ipRouteTable
->
table
[
tableIndex
-
1
],
item
,
pVarBind
);
if
(
!*
pErrorStatus
&&
bPduType
==
SNMP_PDU_GETNEXT
)
ret
=
setOidWithItemAndIpAddr
(
&
pVarBind
->
name
,
&
myOid
,
item
,
ipRouteTable
->
table
[
tableIndex
-
1
].
dwForwardDest
);
...
...
@@ -978,7 +978,7 @@ static BOOL mib2IpNetQuery(BYTE bPduType, SnmpVarBind *pVarBind,
{
*
pErrorStatus
=
mapStructEntryToValue
(
mib2IpNetMap
,
DEFINE_SIZEOF
(
mib2IpNetMap
),
&
ipNetTable
[
tableIndex
-
1
],
item
,
bPduType
,
pVarBind
);
&
ipNetTable
[
tableIndex
-
1
],
item
,
pVarBind
);
if
(
!*
pErrorStatus
&&
bPduType
==
SNMP_PDU_GETNEXT
)
ret
=
setOidWithItemAndInteger
(
&
pVarBind
->
name
,
&
myOid
,
item
,
tableIndex
);
...
...
@@ -1053,7 +1053,7 @@ static BOOL mib2IcmpQuery(BYTE bPduType, SnmpVarBind *pVarBind,
if
(
!*
pErrorStatus
)
{
*
pErrorStatus
=
mapStructEntryToValue
(
mib2IcmpMap
,
DEFINE_SIZEOF
(
mib2IcmpMap
),
&
icmpStats
,
item
,
bPduType
,
DEFINE_SIZEOF
(
mib2IcmpMap
),
&
icmpStats
,
item
,
pVarBind
);
if
(
!*
pErrorStatus
&&
bPduType
==
SNMP_PDU_GETNEXT
)
ret
=
setOidWithItem
(
&
pVarBind
->
name
,
&
myOid
,
item
);
...
...
@@ -1115,7 +1115,7 @@ static BOOL mib2TcpQuery(BYTE bPduType, SnmpVarBind *pVarBind,
if
(
!*
pErrorStatus
)
{
*
pErrorStatus
=
mapStructEntryToValue
(
mib2TcpMap
,
DEFINE_SIZEOF
(
mib2TcpMap
),
&
tcpStats
,
item
,
bPduType
,
pVarBind
);
DEFINE_SIZEOF
(
mib2TcpMap
),
&
tcpStats
,
item
,
pVarBind
);
if
(
!*
pErrorStatus
&&
bPduType
==
SNMP_PDU_GETNEXT
)
ret
=
setOidWithItem
(
&
pVarBind
->
name
,
&
myOid
,
item
);
}
...
...
@@ -1165,7 +1165,7 @@ static BOOL mib2UdpQuery(BYTE bPduType, SnmpVarBind *pVarBind,
if
(
!*
pErrorStatus
)
{
*
pErrorStatus
=
mapStructEntryToValue
(
mib2UdpMap
,
DEFINE_SIZEOF
(
mib2UdpMap
),
&
udpStats
,
item
,
bPduType
,
pVarBind
);
DEFINE_SIZEOF
(
mib2UdpMap
),
&
udpStats
,
item
,
pVarBind
);
if
(
!*
pErrorStatus
&&
bPduType
==
SNMP_PDU_GETNEXT
)
ret
=
setOidWithItem
(
&
pVarBind
->
name
,
&
myOid
,
item
);
}
...
...
@@ -1258,7 +1258,7 @@ static BOOL mib2UdpEntryQuery(BYTE bPduType, SnmpVarBind *pVarBind,
assert
(
item
);
*
pErrorStatus
=
mapStructEntryToValue
(
mib2UdpEntryMap
,
DEFINE_SIZEOF
(
mib2UdpEntryMap
),
&
udpTable
->
table
[
tableIndex
-
1
],
item
,
bPduType
,
pVarBind
);
&
udpTable
->
table
[
tableIndex
-
1
],
item
,
pVarBind
);
if
(
!*
pErrorStatus
&&
bPduType
==
SNMP_PDU_GETNEXT
)
{
AsnObjectIdentifier
oid
;
...
...
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