Commit e8301961839d814185fa96163e768d80b7beaa93
1 parent
0597c00d
Exists in
master
and in
3 other branches
Fixing confusing documentation of lib3270_connect.
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
src/core/connect.c
| ... | ... | @@ -42,7 +42,7 @@ |
| 42 | 42 | |
| 43 | 43 | /*---[ Implement ]-------------------------------------------------------------------------------*/ |
| 44 | 44 | |
| 45 | - LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int wait) | |
| 45 | + LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int seconds) | |
| 46 | 46 | { |
| 47 | 47 | CHECK_SESSION_HANDLE(hSession); |
| 48 | 48 | ... | ... |
src/include/lib3270.h
| ... | ... | @@ -629,13 +629,13 @@ |
| 629 | 629 | * |
| 630 | 630 | * @param hSession Session handle. |
| 631 | 631 | * @param url Host URL |
| 632 | - * @param wait Seconds to wait for connection. | |
| 632 | + * @param seconds Seconds to wait for connection. | |
| 633 | 633 | * |
| 634 | - * @see lib3270_wait | |
| 634 | + * @see lib3270_reconnect | |
| 635 | 635 | * |
| 636 | - * @return 0 for success, EAGAIN if auto-reconnect is in progress, EBUSY if connected, ENOTCONN if connection has failed, -1 on unexpected failure. | |
| 636 | + * @return 0 for success, non zero if fails (sets errno). | |
| 637 | 637 | */ |
| 638 | - LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int wait); | |
| 638 | + LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int seconds); | |
| 639 | 639 | |
| 640 | 640 | /** |
| 641 | 641 | * @brief Disconnect from host. | ... | ... |