1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-29 13:01:14 +03:00

tidy-up: replace exit() with return

In examples and the manual page for `libssh2_version()`.

Closes #1541
This commit is contained in:
Viktor Szakats
2025-02-13 12:24:29 +01:00
parent 9642a96ef7
commit a751d578be
4 changed files with 14 additions and 14 deletions

View File

@ -28,7 +28,7 @@ To make sure you run with the correct libssh2 version:
.nf
if(!libssh2_version(LIBSSH2_VERSION_NUM)) {
fprintf(stderr, \&"Runtime libssh2 version too old.\&");
exit(1);
return -1; /* return error */
}
.fi