diff options
author | Simo Sorce <simo@redhat.com> | 2012-02-09 00:42:05 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-02-09 01:36:07 -0500 |
commit | 9907bfd3384e3b04b97c42063cfe8adc3324d7d0 (patch) | |
tree | add4ce814eaa816d15fc12e26c185670d79c22f1 | |
parent | cfeb453adb75f2d0557388484335a56c5d557a9a (diff) | |
download | gss-proxy-9907bfd3384e3b04b97c42063cfe8adc3324d7d0.tar.gz gss-proxy-9907bfd3384e3b04b97c42063cfe8adc3324d7d0.tar.xz gss-proxy-9907bfd3384e3b04b97c42063cfe8adc3324d7d0.zip |
There is no need anymore to load the server config in the client test program.
-rw-r--r-- | proxy/Makefile.am | 1 | ||||
-rw-r--r-- | proxy/tests/cli_srv_comm.c | 14 |
2 files changed, 1 insertions, 14 deletions
diff --git a/proxy/Makefile.am b/proxy/Makefile.am index df24d51..8519285 100644 --- a/proxy/Makefile.am +++ b/proxy/Makefile.am @@ -116,7 +116,6 @@ gssproxy_SOURCES = \ src/gssproxy.c cli_srv_comm_SOURCES = \ - src/gp_config.c \ src/gp_conv.c \ src/gp_debug.c \ $(GP_RPCGEN_OBJ) \ diff --git a/proxy/tests/cli_srv_comm.c b/proxy/tests/cli_srv_comm.c index ef0a8b1..c8268a5 100644 --- a/proxy/tests/cli_srv_comm.c +++ b/proxy/tests/cli_srv_comm.c @@ -189,7 +189,6 @@ struct athread { pthread_t tid; int *cli_pipe; int *srv_pipe; - struct gp_config *cfg; char *target; }; @@ -475,8 +474,6 @@ int main(int argc, const char *argv[]) int opt; poptContext pc; int opt_version = 0; - struct gp_config *cfg; - char *opt_config_file = NULL; char *opt_target = NULL; int srv_pipe[2]; int cli_pipe[2]; @@ -488,10 +485,8 @@ int main(int argc, const char *argv[]) struct poptOption long_options[] = { POPT_AUTOHELP - {"config", 'c', POPT_ARG_STRING, &opt_config_file, 0, \ - _("Specify a non-default config file"), NULL}, \ {"target", 't', POPT_ARG_STRING, &opt_target, 0, \ - _("Specify a non-default config file"), NULL}, \ + _("Specify the target name used for the tests"), NULL}, \ {"version", '\0', POPT_ARG_NONE, &opt_version, 0, \ _("Print version number and exit"), NULL }, \ POPT_TABLEEND @@ -519,11 +514,6 @@ int main(int argc, const char *argv[]) return 1; } - cfg = read_config(opt_config_file, 0); - if (!cfg) { - return -1; - } - ret = pipe(srv_pipe); if (ret) { return -1; @@ -539,7 +529,6 @@ int main(int argc, const char *argv[]) server.srv_pipe = srv_pipe; server.cli_pipe = cli_pipe; - server.cfg = cfg; server.target = opt_target; ret = pthread_create(&server.tid, &attr, server_thread, &server); @@ -549,7 +538,6 @@ int main(int argc, const char *argv[]) client.srv_pipe = srv_pipe; client.cli_pipe = cli_pipe; - client.cfg = cfg; client.target = opt_target; ret = pthread_create(&client.tid, &attr, client_thread, &client); |