Skip to content

Commit

Permalink
Add const where possible
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
  • Loading branch information
ivanpauno committed Feb 4, 2020
1 parent d14d52a commit dbf1968
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rcl/src/rcl/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ char * prefix_match_lookup(
const rcl_allocator_t * allocator
);

security_lookup_fn_t g_security_lookup_fns[] = {
const security_lookup_fn_t g_security_lookup_fns[] = {
NULL,
exact_match_lookup,
prefix_match_lookup,
Expand All @@ -162,7 +162,7 @@ typedef enum ros_security_lookup_type_e
ROS_SECURITY_LOOKUP_MATCH_PREFIX = 2,
} ros_security_lookup_type_t;

char * g_security_lookup_type_strings[] = {
const char * const g_security_lookup_type_strings[] = {
"NODE_OVERRIDE",
"MATCH_EXACT",
"MATCH_PREFIX"
Expand Down Expand Up @@ -307,7 +307,7 @@ char * rcl_get_secure_root(
// found a usable environment variable, copy into our memory before overwriting with next lookup
char * ros_secure_root_env = rcutils_strdup(env_buf, *allocator);

char * lookup_strategy = NULL;
const char * lookup_strategy = NULL;
char * secure_root = NULL;
if (ros_secure_node_override) {
secure_root = rcutils_strdup(ros_secure_root_env, *allocator);
Expand Down

0 comments on commit dbf1968

Please sign in to comment.