From 4f951461517f3c5430fa87c1594c5f8e6756662c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 20 Aug 2009 10:50:02 +0200 Subject: Fix build warnings on Windows. --- libssh/scp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libssh/scp.c') diff --git a/libssh/scp.c b/libssh/scp.c index c0ebac0..0ca7b44 100644 --- a/libssh/scp.c +++ b/libssh/scp.c @@ -21,9 +21,11 @@ * MA 02111-1307, USA. */ -#include "libssh/priv.h" +#include #include +#include "libssh/priv.h" + /** @brief Creates a new scp session * @param session the SSH session to use * @param mode one of SSH_SCP_WRITE or SSH_SCP_READ, depending if you need to drop files remotely or read them. @@ -136,7 +138,7 @@ int ssh_scp_push_file(ssh_scp scp, const char *filename, size_t size, const char ssh_set_error(scp->session,SSH_FATAL,"ssh_scp_push_file called under invalid state"); return SSH_ERROR; } - snprintf(buffer,sizeof(buffer),"C%s %ld %s\n",perms, size, filename); + snprintf(buffer, sizeof(buffer), "C%s %" PRIdS " %s\n", perms, size, filename); r=channel_write(scp->channel,buffer,strlen(buffer)); if(r==SSH_ERROR){ scp->state=SSH_SCP_ERROR; -- cgit