Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
308d0c39
Commit
308d0c39
authored
Feb 08, 2012
by
JINMEI Tatuya
Browse files
[1596] constify
parent
f5ea0617
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/command.cc
View file @
308d0c39
...
...
@@ -116,8 +116,8 @@ public:
if
(
args
&&
args
->
getType
()
==
isc
::
data
::
Element
::
map
&&
args
->
contains
(
"pid"
))
{
// If it is, we check it is the same as our PID
int
pid
(
args
->
get
(
"pid"
)
->
intValue
());
pid_t
my_pid
(
getpid
());
const
int
pid
(
args
->
get
(
"pid"
)
->
intValue
());
const
pid_t
my_pid
(
getpid
());
if
(
my_pid
!=
pid
)
{
// It is not for us
return
;
...
...
src/bin/auth/tests/command_unittest.cc
View file @
308d0c39
...
...
@@ -117,7 +117,7 @@ TEST_F(AuthCommandTest, shutdown) {
TEST_F
(
AuthCommandTest
,
shutdownCorrectPID
)
{
// Put the pid parameter there
pid_t
pid
(
getpid
());
const
pid_t
pid
(
getpid
());
ElementPtr
param
(
new
isc
::
data
::
MapElement
());
param
->
set
(
"pid"
,
ConstElementPtr
(
new
isc
::
data
::
IntElement
(
pid
)));
this
->
param
=
param
;
...
...
src/bin/resolver/main.cc
View file @
308d0c39
...
...
@@ -90,8 +90,8 @@ my_command_handler(const string& command, ConstElementPtr args) {
if
(
args
&&
args
->
getType
()
==
isc
::
data
::
Element
::
map
&&
args
->
contains
(
"pid"
))
{
// If it is, we check it is the same as our PID
int
pid
(
args
->
get
(
"pid"
)
->
intValue
());
pid_t
my_pid
(
getpid
());
const
int
pid
(
args
->
get
(
"pid"
)
->
intValue
());
const
pid_t
my_pid
(
getpid
());
if
(
my_pid
!=
pid
)
{
// It is not for us
return
(
answer
);
...
...
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