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