diff options
author | Tomas Vondra | 2016-03-01 03:05:53 +0000 |
---|---|---|
committer | Pavan Deolasee | 2016-10-18 10:00:50 +0000 |
commit | b2034c89d15d20307038222ad737e777a1bd6bf2 (patch) | |
tree | 92f8b7b2ddfb8d8a7c33c719698b9255e1e2947c | |
parent | 269065c862bd3fdda20136fb7be2a1682d5ee105 (diff) |
fix declarations that discard 'const' modifier from pointers
-rw-r--r-- | src/gtm/client/gtm_client.c | 6 | ||||
-rw-r--r-- | src/include/gtm/gtm_client.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gtm/client/gtm_client.c b/src/gtm/client/gtm_client.c index 3d6830d912..126ff30ca4 100644 --- a/src/gtm/client/gtm_client.c +++ b/src/gtm/client/gtm_client.c @@ -77,7 +77,7 @@ static int node_register_worker(GTM_Conn *conn, GTM_PGXCNodeType type, const cha char *node_name, char *datafolder, GTM_PGXCNodeStatus status, bool is_backup); static int node_unregister_worker(GTM_Conn *conn, GTM_PGXCNodeType type, const char * node_name, bool is_backup); -static int report_barrier_internal(GTM_Conn *conn, char *barrier_id, bool is_backup); +static int report_barrier_internal(GTM_Conn *conn, const char *barrier_id, bool is_backup); /* * Make an empty result if old one is null. */ @@ -2258,7 +2258,7 @@ send_failed: */ int -report_barrier(GTM_Conn *conn, char *barrier_id) +report_barrier(GTM_Conn *conn, const char *barrier_id) { return(report_barrier_internal(conn, barrier_id, false)); } @@ -2271,7 +2271,7 @@ bkup_report_barrier(GTM_Conn *conn, char *barrier_id) } static int -report_barrier_internal(GTM_Conn *conn, char *barrier_id, bool is_backup) +report_barrier_internal(GTM_Conn *conn, const char *barrier_id, bool is_backup) { GTM_Result *res = NULL; time_t finish_time; diff --git a/src/include/gtm/gtm_client.h b/src/include/gtm/gtm_client.h index 265a138d8f..41206b944f 100644 --- a/src/include/gtm/gtm_client.h +++ b/src/include/gtm/gtm_client.h @@ -318,7 +318,7 @@ int bkup_reset_sequence(GTM_Conn *conn, GTM_SequenceKey key); /* * Barrier */ -int report_barrier(GTM_Conn *conn, char *barier_id); +int report_barrier(GTM_Conn *conn, const char *barier_id); int bkup_report_barrier(GTM_Conn *conn, char *barrier_id); /* |