summaryrefslogtreecommitdiffstats
path: root/tests/basic/gfapi/anonymous_fd_read_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/gfapi/anonymous_fd_read_write.c')
-rw-r--r--tests/basic/gfapi/anonymous_fd_read_write.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/basic/gfapi/anonymous_fd_read_write.c b/tests/basic/gfapi/anonymous_fd_read_write.c
index 885f0a2b26f..6945dd634f0 100644
--- a/tests/basic/gfapi/anonymous_fd_read_write.c
+++ b/tests/basic/gfapi/anonymous_fd_read_write.c
@@ -30,14 +30,16 @@ main (int argc, char *argv[])
char *filename = "file.txt";
char *logfile = NULL;
char *volname = NULL;
+ char *hostname = NULL;
- if (argc != 3) {
+ if (argc != 4) {
fprintf (stderr, "Invalid argument\n");
exit(1);
}
- volname = argv[1];
- logfile = argv[2];
+ hostname = argv[1];
+ volname = argv[2];
+ logfile = argv[3];
fs = glfs_new (volname);
if (!fs) {
@@ -45,7 +47,7 @@ main (int argc, char *argv[])
ret = -1;
}
- ret = glfs_set_volfile_server (fs, "tcp", "localhost", 24007);
+ ret = glfs_set_volfile_server (fs, "tcp", hostname, 24007);
LOG_ERR("glfs_set_volfile_server", ret);
ret = glfs_set_logging (fs, logfile, 7);