Am 03.06.2010 03:54, schrieb Grubsky Grigory:
1>..\src\scp.c(744): warning C4244: '=' : conversion from 'long' to 'unsigned 
short', possible loss of data
can you please try if this works, or if it causes new warnings:

diff --git a/src/libssh2_priv.h b/src/libssh2_priv.h
index fd570e4..4020059 100644
--- a/src/libssh2_priv.h
+++ b/src/libssh2_priv.h
@@ -895,7 +895,7 @@ struct _LIBSSH2_SESSION
     unsigned long scpRecv_command_len;
     unsigned char scpRecv_response[LIBSSH2_SCP_RESPONSE_BUFLEN];
     unsigned long scpRecv_response_len;
-    long scpRecv_mode;
+    mode_t scpRecv_mode;
 #if defined(HAVE_LONGLONG) && defined(HAVE_STRTOLL)
     /* we have the type and we can parse such numbers */
     long long scpRecv_size;
@@ -904,8 +904,8 @@ struct _LIBSSH2_SESSION
     long scpRecv_size;
 #define scpsize_strtol strtol
 #endif
-    long scpRecv_mtime;
-    long scpRecv_atime;
+    time_t scpRecv_mtime;
+    time_t scpRecv_atime;
     char *scpRecv_err_msg;
     long scpRecv_err_len;
     LIBSSH2_CHANNEL *scpRecv_channel;

thanks, Gün.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to