diff --git a/host.c b/host.c index 616691f..8a3a7a7 100644 --- a/host.c +++ b/host.c @@ -494,9 +494,10 @@ static void try_reconnect(H3270 *session) lib3270_reconnect(session,0); } -LIB3270_EXPORT void lib3270_disconnect(H3270 *h) +LIB3270_EXPORT int lib3270_disconnect(H3270 *h) { - host_disconnect(h,0); + host_disconnect(h,0); + return 0; } void host_disconnect(H3270 *hSession, int failed) diff --git a/kybd.c b/kybd.c index 13f8a80..22f294f 100644 --- a/kybd.c +++ b/kybd.c @@ -998,7 +998,7 @@ static Boolean key_Character(H3270 *hSession, int code, Boolean with_ge, Boolean } -LIB3270_EXPORT void lib3270_input_string(H3270 *hSession, const unsigned char *str) +LIB3270_EXPORT int lib3270_input_string(H3270 *hSession, const unsigned char *str) { while(*str) { @@ -1006,7 +1006,9 @@ LIB3270_EXPORT void lib3270_input_string(H3270 *hSession, const unsigned char *s str++; } - screen_update(hSession,0,hSession->rows*hSession->cols); + screen_update(hSession,0,hSession->rows*hSession->cols); + + return 0; } /** -- libgit2 0.21.2