diff options
Diffstat (limited to 'lib/examples/client.c')
-rw-r--r-- | lib/examples/client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/examples/client.c b/lib/examples/client.c index eab4390..a6b7999 100644 --- a/lib/examples/client.c +++ b/lib/examples/client.c @@ -55,8 +55,12 @@ int main (int argc, char *argv[]) { struct rs_error *err; + char *host; + int port; - err = rsx_client (strsep (argv + 1, ":"), atoi (argv[1])); + host = strsep (argv + 1, ":"); + port = atoi (argv[1]); + err = rsx_client (host, port); if (!err) return -1; fprintf (stderr, "%s\n", rs_err_msg (err, 0)); |