summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vpp-api/client/stat_client.c4
-rw-r--r--src/vpp-api/client/stat_client.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/vpp-api/client/stat_client.c b/src/vpp-api/client/stat_client.c
index 538820ad338..bd9d8ccd933 100644
--- a/src/vpp-api/client/stat_client.c
+++ b/src/vpp-api/client/stat_client.c
@@ -105,7 +105,7 @@ get_stat_vector (void)
}
int
-stat_segment_connect_r (char *socket_name, stat_client_main_t * sm)
+stat_segment_connect_r (const char *socket_name, stat_client_main_t * sm)
{
int mfd = -1;
int sock;
@@ -160,7 +160,7 @@ stat_segment_connect_r (char *socket_name, stat_client_main_t * sm)
}
int
-stat_segment_connect (char *socket_name)
+stat_segment_connect (const char *socket_name)
{
stat_client_main_t *sm = &stat_client_main;
return stat_segment_connect_r (socket_name, sm);
diff --git a/src/vpp-api/client/stat_client.h b/src/vpp-api/client/stat_client.h
index 31fd82b41e2..52aaa244678 100644
--- a/src/vpp-api/client/stat_client.h
+++ b/src/vpp-api/client/stat_client.h
@@ -50,8 +50,8 @@ typedef struct
stat_client_main_t *stat_client_get (void);
void stat_client_free (stat_client_main_t * sm);
-int stat_segment_connect_r (char *socket_name, stat_client_main_t * sm);
-int stat_segment_connect (char *socket_name);
+int stat_segment_connect_r (const char *socket_name, stat_client_main_t * sm);
+int stat_segment_connect (const char *socket_name);
void stat_segment_disconnect_r (stat_client_main_t * sm);
void stat_segment_disconnect (void);
uint8_t **stat_segment_string_vector (uint8_t ** string_vector, char *string);