mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-31 00:03:08 +03:00
Fix a couple of warnings of errors in MSVC builds
Two warnings (in tests & examples) in particular would cause problems: bad format causing invalid data output or a bad chdir due to out of scope buffer use.
This commit is contained in:
@ -250,8 +250,8 @@ int main(int argc, char *argv[])
|
||||
fds[0].events = LIBSSH2_POLLFD_POLLIN | LIBSSH2_POLLFD_POLLOUT;
|
||||
|
||||
do {
|
||||
int rc = (libssh2_poll(fds, 1, 10));
|
||||
int act = 0;
|
||||
rc = (libssh2_poll(fds, 1, 10));
|
||||
|
||||
if(rc < 1)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user