diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-03-18 09:27:08 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-03-18 09:27:08 +0000 |
commit | 63cff85b1a27bddf4eeda84e02fd6d2686e94404 (patch) | |
tree | b455689adb84f43bb89099a481ea6f4763b2d2a2 /sample.c | |
parent | 0151b6e17041c56813c882a3de6330c82acc8d93 (diff) | |
download | libssh-63cff85b1a27bddf4eeda84e02fd6d2686e94404.tar.gz libssh-63cff85b1a27bddf4eeda84e02fd6d2686e94404.tar.xz libssh-63cff85b1a27bddf4eeda84e02fd6d2686e94404.zip |
Fix compile warnings.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@276 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'sample.c')
-rw-r--r-- | sample.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -301,8 +301,12 @@ void do_sftp(SSH_SESSION *session){ } /* reading the whole directory, file by file */ while((file=sftp_readdir(sftp,dir))){ - fprintf(stderr, "%30s(%.8o) : %.5d.%.5d : %.10ld bytes\n", - file->name, file->permissions, file->uid, file->gid, file->size); + fprintf(stderr, "%30s(%.8o) : %.5d.%.5d : %.10llu bytes\n", + file->name, + file->permissions, + file->uid, + file->gid, + (long long unsigned int) file->size); sftp_attributes_free(file); } /* when file=NULL, an error has occured OR the directory listing is end of file */ |