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
fdabd73d
Commit
fdabd73d
authored
Dec 08, 2019
by
Simon Giesecke
Committed by
Simon Giesecke
Dec 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: parameters not const where const possible
Solution: add const
parent
84267e73
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
ctx.cpp
src/ctx.cpp
+3
-1
ctx.hpp
src/ctx.hpp
+1
-1
options.cpp
src/options.cpp
+1
-1
test_security_curve.cpp
tests/test_security_curve.cpp
+3
-3
No files found.
src/ctx.cpp
View file @
fdabd73d
...
...
@@ -616,7 +616,9 @@ int zmq::thread_ctx_t::set (int option_, const void *optval_, size_t optvallen_)
return
-
1
;
}
int
zmq
::
thread_ctx_t
::
get
(
int
option_
,
void
*
optval_
,
size_t
*
optvallen_
)
int
zmq
::
thread_ctx_t
::
get
(
int
option_
,
void
*
optval_
,
const
size_t
*
optvallen_
)
{
const
bool
is_int
=
(
*
optvallen_
==
sizeof
(
int
));
int
*
value
=
static_cast
<
int
*>
(
optval_
);
...
...
src/ctx.hpp
View file @
fdabd73d
...
...
@@ -73,7 +73,7 @@ class thread_ctx_t
const
char
*
name_
=
NULL
)
const
;
int
set
(
int
option_
,
const
void
*
optval_
,
size_t
optvallen_
);
int
get
(
int
option_
,
void
*
optval_
,
size_t
*
optvallen_
);
int
get
(
int
option_
,
void
*
optval_
,
const
size_t
*
optvallen_
);
protected
:
// Synchronisation of access to context options.
...
...
src/options.cpp
View file @
fdabd73d
...
...
@@ -85,7 +85,7 @@ int zmq::do_getsockopt (void *const optval_,
#ifdef ZMQ_HAVE_CURVE
static
int
do_getsockopt_curve_key
(
void
*
const
optval_
,
size_t
*
const
optvallen_
,
const
size_t
*
const
optvallen_
,
const
uint8_t
(
&
curve_key_
)[
CURVE_KEYSIZE
])
{
if
(
*
optvallen_
==
CURVE_KEYSIZE
)
{
...
...
tests/test_security_curve.cpp
View file @
fdabd73d
...
...
@@ -100,9 +100,9 @@ static void zap_handler_large_routing_id (void * /*unused_*/)
zap_handler_generic
(
zap_ok
,
large_routing_id
);
}
void
expect_new_client_curve_bounce_fail
(
char
*
server_public_
,
char
*
client_public_
,
char
*
client_secret_
,
void
expect_new_client_curve_bounce_fail
(
c
onst
c
har
*
server_public_
,
c
onst
c
har
*
client_public_
,
c
onst
c
har
*
client_secret_
,
char
*
my_endpoint_
,
void
*
server_
,
void
**
client_mon_
=
NULL
,
...
...
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