1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-23 01:22:37 +03:00

data size: cleanup

Fix 64bit warnings by using (s)size_t and dedicated uint32_t types more.
This commit is contained in:
Daniel Stenberg
2010-12-29 23:36:45 +01:00
parent 306929ee80
commit 4552c73cd5
7 changed files with 66 additions and 63 deletions

View File

@@ -415,16 +415,15 @@ get_socket_nonblocking(int sockfd)
LIBSSH2_API int
libssh2_banner_set(LIBSSH2_SESSION * session, const char *banner)
{
int banner_len = banner ? strlen(banner) : 0;
size_t banner_len = banner ? strlen(banner) : 0;
if (session->local.banner) {
LIBSSH2_FREE(session, session->local.banner);
session->local.banner = NULL;
}
if (!banner_len) {
if (!banner_len)
return 0;
}
session->local.banner = LIBSSH2_ALLOC(session, banner_len + 3);
if (!session->local.banner) {