diff options
Diffstat (limited to 'tests/basic/gfapi/bug-1241104.c')
-rw-r--r-- | tests/basic/gfapi/bug-1241104.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/basic/gfapi/bug-1241104.c b/tests/basic/gfapi/bug-1241104.c index 0f1a616bd39..311323f672a 100644 --- a/tests/basic/gfapi/bug-1241104.c +++ b/tests/basic/gfapi/bug-1241104.c @@ -2,7 +2,6 @@ #include <unistd.h> #include <time.h> #include <limits.h> -#include <alloca.h> #include <string.h> #include <stdio.h> #include <stdlib.h> @@ -32,15 +31,17 @@ main (int argc, char *argv[]) char *filename = "file_tmp"; char *volname = NULL; char *logfile = NULL; + char *hostname = NULL; struct flock lock = {0, }; - 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) { @@ -48,7 +49,7 @@ main (int argc, char *argv[]) return -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); |