From 6582895b5146149aab7c619cbcb0ea292cfe12e6 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 5 Jun 2009 18:40:40 +0000 Subject: docs/example patches for VMS --- docs/examples/anyauthput.c | 4 +++- docs/examples/debug.c | 5 +++-- docs/examples/ftpupload.c | 2 +- docs/examples/multi-debugcallback.c | 7 ++++--- 4 files changed, 11 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/examples/anyauthput.c b/docs/examples/anyauthput.c index 11c9d3c77..dd5b5ddf7 100644 --- a/docs/examples/anyauthput.c +++ b/docs/examples/anyauthput.c @@ -13,7 +13,9 @@ #ifdef WIN32 # include #else -# include +# ifndef __VMS +# include +# endif # include #endif #include diff --git a/docs/examples/debug.c b/docs/examples/debug.c index 543a565eb..30ce820cc 100644 --- a/docs/examples/debug.c +++ b/docs/examples/debug.c @@ -29,11 +29,12 @@ void dump(const char *text, /* without the hex output, we can fit more on screen */ width = 0x40; - fprintf(stream, "%s, %zd bytes (0x%zx)\n", text, size, size); + fprintf(stream, "%s, %010.10ld bytes (0x%08.8lx)\n", + text, (long)size, (long)size); for(i=0; i