[ 37%] Building C object
externals/libssh2/CMakeFiles/ssh2.dir/src/userauth.c.obj
cc1.exe: warnings being treated as errors
C:\TEMP\SVN\server_monitor\externals\libssh2\src\userauth.c: In function
'userauth_hostbased_fromfile':
C:\TEMP\SVN\server_monitor\externals\libssh2\src\userauth.c:734: error:
pointer targets in assignment differ in signedness
C:\TEMP\SVN\server_monitor\externals\libssh2\src\userauth.c:736: error:
pointer targets in assignment differ in signedness
C:\TEMP\SVN\server_monitor\externals\libssh2\src\userauth.c:738: error:
pointer targets in assignment differ in signedness
C:\TEMP\SVN\server_monitor\externals\libssh2\src\userauth.c: In function
'userauth_publickey_fromfile':
C:\TEMP\SVN\server_monitor\externals\libssh2\src\userauth.c:1081: error:
pointer targets in assignment differ in signedness
C:\TEMP\SVN\server_monitor\externals\libssh2\src\userauth.c:1083: error:
pointer targets in assignment differ in signedness
C:\TEMP\SVN\server_monitor\externals\libssh2\src\userauth.c:1085: error:
pointer targets in assignment differ in signedness
mingw32-make[2]: ***
[externals/libssh2/CMakeFiles/ssh2.dir/src/userauth.c.obj] Error 1
mingw32-make[1]: *** [externals/libssh2/CMakeFiles/ssh2.dir/all] Error 2
mingw32-make: *** [all] Error 2
*Possible fix:*
Index: userauth.c
===================================================================
--- userauth.c (revision 240)
+++ userauth.c (working copy)
@@ -731,11 +731,11 @@
}
_libssh2_htonu32(buf, session->session_id_len);
- datavec[0].iov_base = buf;
+ datavec[0].iov_base = (char*)buf;
datavec[0].iov_len = 4;
- datavec[1].iov_base = session->session_id;
+ datavec[1].iov_base = (char*)session->session_id;
datavec[1].iov_len = session->session_id_len;
- datavec[2].iov_base = session->userauth_host_packet;
+ datavec[2].iov_base = (char*)session->userauth_host_packet;
datavec[2].iov_len = session->userauth_host_packet_len;
if (privkeyobj->signv(session, &sig, &sig_len, 3, datavec,
&abstract)) {
@@ -1078,11 +1078,11 @@
*session->userauth_pblc_b = 0x01;
_libssh2_htonu32(buf, session->session_id_len);
- datavec[0].iov_base = buf;
+ datavec[0].iov_base = (char*)buf;
datavec[0].iov_len = 4;
- datavec[1].iov_base = session->session_id;
+ datavec[1].iov_base = (char*)session->session_id;
datavec[1].iov_len = session->session_id_len;
- datavec[2].iov_base = session->userauth_pblc_packet;
+ datavec[2].iov_base = (char*)session->userauth_pblc_packet;
datavec[2].iov_len = session->userauth_pblc_packet_len;
if (privkeyobj->signv(session, &sig, &sig_len, 3, datavec,
&abstract)) {
Grtz,
Steven
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-07-08