From e8301961839d814185fa96163e768d80b7beaa93 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 15 Aug 2019 16:53:57 -0300 Subject: [PATCH] Fixing confusing documentation of lib3270_connect. --- src/core/connect.c | 2 +- src/include/lib3270.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/connect.c b/src/core/connect.c index 121b6de..1814b97 100644 --- a/src/core/connect.c +++ b/src/core/connect.c @@ -42,7 +42,7 @@ /*---[ Implement ]-------------------------------------------------------------------------------*/ - LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int wait) + LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int seconds) { CHECK_SESSION_HANDLE(hSession); diff --git a/src/include/lib3270.h b/src/include/lib3270.h index de5f779..cee8a95 100644 --- a/src/include/lib3270.h +++ b/src/include/lib3270.h @@ -629,13 +629,13 @@ * * @param hSession Session handle. * @param url Host URL - * @param wait Seconds to wait for connection. + * @param seconds Seconds to wait for connection. * - * @see lib3270_wait + * @see lib3270_reconnect * - * @return 0 for success, EAGAIN if auto-reconnect is in progress, EBUSY if connected, ENOTCONN if connection has failed, -1 on unexpected failure. + * @return 0 for success, non zero if fails (sets errno). */ - LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int wait); + LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int seconds); /** * @brief Disconnect from host. -- libgit2 0.21.2