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
3f4e64ed
Commit
3f4e64ed
authored
Feb 04, 2019
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: bind_to_device unnecessarily accepts a non-const string parameter
Solution: add const
parent
12c4b55a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ip.cpp
src/ip.cpp
+1
-1
ip.hpp
src/ip.hpp
+1
-1
No files found.
src/ip.cpp
View file @
3f4e64ed
...
...
@@ -237,7 +237,7 @@ int zmq::set_nosigpipe (fd_t s_)
return
0
;
}
void
zmq
::
bind_to_device
(
fd_t
s_
,
std
::
string
&
bound_device_
)
void
zmq
::
bind_to_device
(
fd_t
s_
,
const
std
::
string
&
bound_device_
)
{
#ifdef ZMQ_HAVE_SO_BINDTODEVICE
int
rc
=
setsockopt
(
s_
,
SOL_SOCKET
,
SO_BINDTODEVICE
,
...
...
src/ip.hpp
View file @
3f4e64ed
...
...
@@ -56,7 +56,7 @@ void set_ip_type_of_service (fd_t s_, int iptos_);
int
set_nosigpipe
(
fd_t
s_
);
// Binds the underlying socket to the given device, eg. VRF or interface
void
bind_to_device
(
fd_t
s_
,
std
::
string
&
bound_device_
);
void
bind_to_device
(
fd_t
s_
,
const
std
::
string
&
bound_device_
);
// Initialize network subsystem. May be called multiple times. Each call must be matched by a call to shutdown_network.
bool
initialize_network
();
...
...
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