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/hiperfifo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/hiperfifo.c') diff --git a/docs/examples/hiperfifo.c b/docs/examples/hiperfifo.c index e8d767133..76e506fb5 100644 --- a/docs/examples/hiperfifo.c +++ b/docs/examples/hiperfifo.c @@ -252,7 +252,7 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp) { GlobalInfo *g = (GlobalInfo*) cbp; SockInfo *fdp = (SockInfo*) sockp; - char *whatstr[]={ "none", "IN", "OUT", "INOUT", "REMOVE" }; + const char *whatstr[]={ "none", "IN", "OUT", "INOUT", "REMOVE" }; fprintf(MSG_OUT, "socket callback: s=%d e=%p what=%s ", s, e, whatstr[what]); @@ -357,7 +357,7 @@ void fifo_cb(int fd, short event, void *arg) { /* Create a named pipe and tell libevent to monitor it */ int init_fifo (GlobalInfo *g) { struct stat st; - char *fifo = "hiper.fifo"; + static const char *fifo = "hiper.fifo"; int socket; fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); -- cgit v1.2.3