From 49ce3e5160a9576e797bf87cef012b09d1c54ecb Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 12 Jul 2007 21:11:10 +0000 Subject: Fixed some compile warnings and errors and improved portability in the examples. Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers any longer. --- docs/examples/opensslthreadlock.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docs/examples/opensslthreadlock.c') diff --git a/docs/examples/opensslthreadlock.c b/docs/examples/opensslthreadlock.c index 82de206da..18a2f77fc 100644 --- a/docs/examples/opensslthreadlock.c +++ b/docs/examples/opensslthreadlock.c @@ -16,6 +16,11 @@ * Author: Jeremy Brown */ + +#include +#include +#include + #define MUTEX_TYPE pthread_mutex_t #define MUTEX_SETUP(x) pthread_mutex_init(&(x), NULL) #define MUTEX_CLEANUP(x) pthread_mutex_destroy(&(x)) @@ -25,7 +30,7 @@ void handle_error(const char *file, int lineno, const char *msg){ - fprintf(stderr, ** %s:%i %s\n, file, lineno, msg); + fprintf(stderr, "** %s:%d %s\n", file, lineno, msg); ERR_print_errors_fp(stderr); /* exit(-1); */ } -- cgit v1.2.3