Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
415
Issues
415
List
Boards
Labels
Service Desk
Milestones
Merge Requests
65
Merge Requests
65
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
Kea
Commits
9bcc1e81
Commit
9bcc1e81
authored
Jan 21, 2020
by
Razvan Becheriu
Committed by
Tomek Mrugalski
Feb 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#1071
] always cast to target type
parent
c3f77065
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
src/lib/dhcpsrv/mysql_host_data_source.cc
src/lib/dhcpsrv/mysql_host_data_source.cc
+1
-5
src/lib/dhcpsrv/mysql_lease_mgr.cc
src/lib/dhcpsrv/mysql_lease_mgr.cc
+1
-4
No files found.
src/lib/dhcpsrv/mysql_host_data_source.cc
View file @
9bcc1e81
...
@@ -189,11 +189,7 @@ public:
...
@@ -189,11 +189,7 @@ public:
std
::
vector
<
my_bools
>&
error
)
{
std
::
vector
<
my_bools
>&
error
)
{
for
(
size_t
i
=
0
;
i
<
error
.
size
();
++
i
)
{
for
(
size_t
i
=
0
;
i
<
error
.
size
();
++
i
)
{
error
[
i
]
=
MLM_FALSE
;
error
[
i
]
=
MLM_FALSE
;
#ifdef HAVE_MYSQL_MY_BOOL
bind
[
i
].
error
=
reinterpret_cast
<
my_bool
*>
(
&
error
[
i
]);
bind
[
i
].
error
=
reinterpret_cast
<
char
*>
(
&
error
[
i
]);
#else
bind
[
i
].
error
=
reinterpret_cast
<
bool
*>
(
&
error
[
i
]);
#endif
}
}
};
};
...
...
src/lib/dhcpsrv/mysql_lease_mgr.cc
View file @
9bcc1e81
...
@@ -355,11 +355,8 @@ public:
...
@@ -355,11 +355,8 @@ public:
size_t
count
)
{
size_t
count
)
{
for
(
size_t
i
=
0
;
i
<
count
;
++
i
)
{
for
(
size_t
i
=
0
;
i
<
count
;
++
i
)
{
error
[
i
]
=
MLM_FALSE
;
error
[
i
]
=
MLM_FALSE
;
#ifdef HAVE_MYSQL_MY_BOOL
bind
[
i
].
error
=
reinterpret_cast
<
char
*>
(
&
error
[
i
]);
#else
bind
[
i
].
error
=
&
error
[
i
];
#endif
#endif
bind
[
i
].
error
=
reinterpret_cast
<
my_bool
*>
(
&
error
[
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