Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
883e95b2
Commit
883e95b2
authored
Jun 22, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1099 from chrox/master
Fixed build with arm-linux-androideabi toolchain
parents
8b801972
bdf6427a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tcp_address.cpp
src/tcp_address.cpp
+2
-2
test_filter_ipc.cpp
tests/test_filter_ipc.cpp
+1
-1
No files found.
src/tcp_address.cpp
View file @
883e95b2
...
...
@@ -136,10 +136,10 @@ int zmq::tcp_address_t::resolve_nic_name (const char *nic_, bool ipv6_, bool is_
}
if
(
is_src_
)
memcpy
(
&
source_address
.
ipv4
.
sin_addr
,
&
((
sockaddr_in
*
)
&
ifr
.
ifr_addr
)
->
sin_addr
,
sizeof
in_addr
);
&
((
sockaddr_in
*
)
&
ifr
.
ifr_addr
)
->
sin_addr
,
sizeof
(
struct
in_addr
)
);
else
memcpy
(
&
address
.
ipv4
.
sin_addr
,
&
((
sockaddr_in
*
)
&
ifr
.
ifr_addr
)
->
sin_addr
,
sizeof
in_addr
);
&
((
sockaddr_in
*
)
&
ifr
.
ifr_addr
)
->
sin_addr
,
sizeof
(
struct
in_addr
)
);
return
0
;
}
...
...
tests/test_filter_ipc.cpp
View file @
883e95b2
...
...
@@ -122,7 +122,7 @@ int main (void)
// Get the group and supplimental groups of the process owner
gid_t
groups
[
100
];
int
ngroups
=
getgroups
(
100
,
groups
);
assert
(
ngroups
!=
-
1
);
assert
(
ngroups
!=
-
1
&&
ngroups
!=
0
);
gid_t
group
=
getgid
(),
supgroup
=
groups
[
0
],
notgroup
=
groups
[
ngroups
-
1
]
+
1
;
for
(
int
i
=
0
;
i
<
ngroups
;
i
++
)
{
if
(
supgroup
==
group
&&
group
!=
groups
[
i
])
...
...
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