summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-09-19 15:22:20 +0200
committerTimo Dritschler <timo.dritschler@kit.edu>2014-09-19 15:22:20 +0200
commit6ffe22890f901238318c68c38c099ccd62321a9a (patch)
treed2bb7110e9275074330514858c6bc71c17b77223 /src
parent268b867c719717f12d5e57e6ca93e6f6cfd04a35 (diff)
downloadkiro-6ffe22890f901238318c68c38c099ccd62321a9a.tar.gz
kiro-6ffe22890f901238318c68c38c099ccd62321a9a.tar.bz2
kiro-6ffe22890f901238318c68c38c099ccd62321a9a.tar.xz
kiro-6ffe22890f901238318c68c38c099ccd62321a9a.zip
Changed kiro_cient_connect parameters to const
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);