summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kiro-client.c3
-rw-r--r--src/kiro-client.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/kiro-client.c b/src/kiro-client.c
index 2f0671b..1175e7e 100644
--- a/src/kiro-client.c
+++ b/src/kiro-client.c
@@ -93,7 +93,7 @@ kiro_client_class_init (KiroClientClass *klass)
int
-kiro_client_connect (KiroClient *self, char *address, char *port)
+kiro_client_connect (KiroClient *self, const char *address, const char *port)
{
KiroClientPrivate *priv = KIRO_CLIENT_GET_PRIVATE (self);
@@ -244,7 +244,6 @@ kiro_client_sync (KiroClient *self)
g_critical ("Could not get data from server. Status %u", wc.status);
}
-
fail:
rdma_disconnect (priv->conn);
kiro_destroy_connection_context (&ctx);
diff --git a/src/kiro-client.h b/src/kiro-client.h
index 146845b..b03bab9 100644
--- a/src/kiro-client.h
+++ b/src/kiro-client.h
@@ -77,7 +77,7 @@ KiroClient *kiro_client_new (void);
/* client functions */
-int kiro_client_connect (KiroClient *client, char *dest_addr, char *dest_port);
+int kiro_client_connect (KiroClient *client, const char *dest_addr, const char *dest_port);
int kiro_client_sync (KiroClient *client);