From 3577dc18d07578c394e7679dbe5e43d04a43e66b Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 11 Dec 2013 17:41:23 +0000 Subject: [PATCH] Corrigindo incoerências nos diálogos e APIs --- host.c | 2 +- macros.c | 4 ++-- testprogram.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/host.c b/host.c index 402320c..3f86d31 100644 --- a/host.c +++ b/host.c @@ -506,7 +506,7 @@ static void update_host(H3270 *h) } -LIB3270_EXPORT const char * lib3270_set_host(H3270 *h, const char *n) +LIB3270_EXPORT const char * lib3270_set_url(H3270 *h, const char *n) { CHECK_SESSION_HANDLE(h); diff --git a/macros.c b/macros.c index afdead7..21c11af 100644 --- a/macros.c +++ b/macros.c @@ -258,12 +258,12 @@ break; case 2: - lib3270_set_host(hSession,argv[1]); + lib3270_set_url(hSession,argv[1]); rc = lib3270_connect(hSession,0); break; case 3: - lib3270_set_host(hSession,argv[1]); + lib3270_set_url(hSession,argv[1]); rc = lib3270_connect(hSession,atoi(argv[2])); break; diff --git a/testprogram.c b/testprogram.c index dc7effc..d7ca4b0 100644 --- a/testprogram.c +++ b/testprogram.c @@ -40,7 +40,7 @@ int main(int numpar, char *param[]) // rc = lib3270_connect_host(h, "127.0.0.1", "9090", LIB3270_CONNECT_OPTION_WAIT); // lib3270_set_host_url(h,"tn3270://fandezhi.efglobe.com:9090?lu=default"); - lib3270_set_host(h,"tn3270://fandezhi.efglobe.com"); + lib3270_set_url(h,"tn3270://fandezhi.efglobe.com"); printf("\nConnect exits with rc=%d\n",rc); -- libgit2 0.21.2