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
1ca0c4a6
Commit
1ca0c4a6
authored
Oct 04, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Use BOOL type where appropriate.
parent
eea90178
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ifenum.c
dlls/iphlpapi/ifenum.c
+6
-5
No files found.
dlls/iphlpapi/ifenum.c
View file @
1ca0c4a6
...
...
@@ -109,9 +109,9 @@
/* Functions */
static
int
isLoopbackInterface
(
int
fd
,
const
char
*
name
)
static
BOOL
isLoopbackInterface
(
int
fd
,
const
char
*
name
)
{
int
ret
=
0
;
BOOL
ret
=
FALSE
;
if
(
name
)
{
struct
ifreq
ifr
;
...
...
@@ -120,7 +120,7 @@ static int isLoopbackInterface(int fd, const char *name)
if
(
ioctl
(
fd
,
SIOCGIFFLAGS
,
&
ifr
)
==
0
)
ret
=
ifr
.
ifr_flags
&
IFF_LOOPBACK
;
}
return
ret
;
return
!!
ret
;
}
/* The comments say MAX_ADAPTER_NAME is required, but really only IF_NAMESIZE
...
...
@@ -275,7 +275,8 @@ static void free_netlink_reply( struct netlink_reply *data )
static
int
recv_netlink_reply
(
int
fd
,
int
pid
,
int
seq
,
struct
netlink_reply
**
data
)
{
int
bufsize
=
getpagesize
();
int
left
,
read
,
done
=
0
;
int
left
,
read
;
BOOL
done
=
FALSE
;
socklen_t
sa_len
;
struct
sockaddr_nl
addr
;
struct
netlink_reply
*
cur
,
*
last
=
NULL
;
...
...
@@ -297,7 +298,7 @@ static int recv_netlink_reply( int fd, int pid, int seq, struct netlink_reply **
if
(
hdr
->
nlmsg_pid
!=
pid
||
hdr
->
nlmsg_seq
!=
seq
)
continue
;
if
(
hdr
->
nlmsg_type
==
NLMSG_DONE
)
{
done
=
1
;
done
=
TRUE
;
break
;
}
}
...
...
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