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
f6ae4d16
Commit
f6ae4d16
authored
Sep 22, 2020
by
Jiangyi Chen
Committed by
Alexandre Julliard
Sep 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Rename local variables shadowing the flags parameters.
Signed-off-by:
Jiangyi Chen
<
chenjiangyi@uniontech.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d6c4efec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ipstats.c
dlls/iphlpapi/ipstats.c
+8
-8
No files found.
dlls/iphlpapi/ipstats.c
View file @
f6ae4d16
...
...
@@ -1402,7 +1402,7 @@ DWORD WINAPI AllocateAndGetIpForwardTableFromStack(PMIB_IPFORWARDTABLE *ppIpForw
if
((
fp
=
fopen
(
"/proc/net/route"
,
"r"
)))
{
char
buf
[
512
],
*
ptr
;
DWORD
flags
;
DWORD
rtf_
flags
;
/* skip header line */
ptr
=
fgets
(
buf
,
sizeof
(
buf
),
fp
);
...
...
@@ -1417,10 +1417,10 @@ DWORD WINAPI AllocateAndGetIpForwardTableFromStack(PMIB_IPFORWARDTABLE *ppIpForw
row
.
dwForwardDest
=
strtoul
(
ptr
,
&
ptr
,
16
);
row
.
dwForwardNextHop
=
strtoul
(
ptr
+
1
,
&
ptr
,
16
);
flags
=
strtoul
(
ptr
+
1
,
&
ptr
,
16
);
rtf_
flags
=
strtoul
(
ptr
+
1
,
&
ptr
,
16
);
if
(
!
(
flags
&
RTF_UP
))
row
.
u1
.
ForwardType
=
MIB_IPROUTE_TYPE_INVALID
;
else
if
(
flags
&
RTF_GATEWAY
)
row
.
u1
.
ForwardType
=
MIB_IPROUTE_TYPE_INDIRECT
;
if
(
!
(
rtf_
flags
&
RTF_UP
))
row
.
u1
.
ForwardType
=
MIB_IPROUTE_TYPE_INVALID
;
else
if
(
rtf_
flags
&
RTF_GATEWAY
)
row
.
u1
.
ForwardType
=
MIB_IPROUTE_TYPE_INDIRECT
;
else
row
.
u1
.
ForwardType
=
MIB_IPROUTE_TYPE_DIRECT
;
strtoul
(
ptr
+
1
,
&
ptr
,
16
);
/* refcount, skip */
...
...
@@ -1664,7 +1664,7 @@ DWORD WINAPI AllocateAndGetIpNetTableFromStack(PMIB_IPNETTABLE *ppIpNetTable, BO
if
((
fp
=
fopen
(
"/proc/net/arp"
,
"r"
)))
{
char
buf
[
512
],
*
ptr
;
DWORD
flags
;
DWORD
atf_
flags
;
/* skip header line */
ptr
=
fgets
(
buf
,
sizeof
(
buf
),
fp
);
...
...
@@ -1675,14 +1675,14 @@ DWORD WINAPI AllocateAndGetIpNetTableFromStack(PMIB_IPNETTABLE *ppIpNetTable, BO
row
.
dwAddr
=
inet_addr
(
ptr
);
while
(
*
ptr
&&
!
isspace
(
*
ptr
))
ptr
++
;
strtoul
(
ptr
+
1
,
&
ptr
,
16
);
/* hw type (skip) */
flags
=
strtoul
(
ptr
+
1
,
&
ptr
,
16
);
atf_
flags
=
strtoul
(
ptr
+
1
,
&
ptr
,
16
);
#ifdef ATF_COM
if
(
flags
&
ATF_COM
)
row
.
u
.
Type
=
MIB_IPNET_TYPE_DYNAMIC
;
if
(
atf_
flags
&
ATF_COM
)
row
.
u
.
Type
=
MIB_IPNET_TYPE_DYNAMIC
;
else
#endif
#ifdef ATF_PERM
if
(
flags
&
ATF_PERM
)
row
.
u
.
Type
=
MIB_IPNET_TYPE_STATIC
;
if
(
atf_
flags
&
ATF_PERM
)
row
.
u
.
Type
=
MIB_IPNET_TYPE_STATIC
;
else
#endif
row
.
u
.
Type
=
MIB_IPNET_TYPE_OTHER
;
...
...
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