Subject: [libssh2] #165: size_t conversion

[libssh2] #165: size_t conversion

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Mon, 15 Mar 2010 16:38:21 -0000

#165: size_t conversion
-------------------------+--------------------------------------------------
 Reporter: roadrunn | Owner:
     Type: enhancement | Status: new
 Priority: normal | Milestone:
Component: API | Version: 1.2.4
 Keywords: | Blocking:
Blockedby: |
-------------------------+--------------------------------------------------
 Attached is the initial patch against 1.2.4 for converting unsigned long
 to size_t. Many functions had to be touched since we bubble up returns
 from lower functions. I am down from 446 warnings before, to 7 warnings
 now. The remaining warnings are below that are not easy fixes.

 1>..\src\misc.c(83) : warning C4267: 'function' : conversion from 'size_t'
 to 'int', possible loss of data
 1>..\src\misc.c(102) : warning C4267: 'function' : conversion from
 'size_t' to 'int', possible loss of data
 1>..\src\packet.c(1131) : warning C4244: 'function' : conversion from
 'SSIZE_T' to 'unsigned char', possible loss of data
 1>..\src\scp.c(689) : warning C4244: '=' : conversion from 'long' to
 'unsigned short', possible loss of data
 1>..\src\session.c(541) : warning C4244: 'function' : conversion from
 'libssh2_socket_t' to 'int', possible loss of data
 1>..\src\session.c(569) : warning C4244: 'function' : conversion from
 'libssh2_socket_t' to 'int', possible loss of data
 1>..\src\session.c(1557) : warning C4244: 'function' : conversion from
 'libssh2_socket_t' to 'int', possible loss of data

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/165>
libssh2 <http://libssh2.stuge.se/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-03-15