From b6901ec4b972e7edc6df6c7eb2414c9d0a51f114 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 27 Oct 2010 22:53:20 +0200 Subject: Fix senddata.c for 32bits machines --- examples/senddata.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/senddata.c b/examples/senddata.c index bd8d1175..c8895ad4 100644 --- a/examples/senddata.c +++ b/examples/senddata.c @@ -10,8 +10,8 @@ int main(void) { ssh_channel channel; char buffer[1024*1024]; int rc; - long total=0; - long lastshown=4096; + uint64_t total=0; + uint64_t lastshown=4096; session = connect_ssh("localhost", NULL, 0); if (session == NULL) { return 1; @@ -41,7 +41,7 @@ int main(void) { while ((rc = ssh_channel_write(channel, buffer, sizeof(buffer))) > 0) { total += rc; if(total/2 >= lastshown){ - printf("written %lx\n",total); + printf("written %llx\n",total); lastshown=total; } if(total > LIMIT) -- cgit v1.2.3