diff options
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/10-at-a-time.c | 2 | ||||
-rw-r--r-- | docs/examples/anyauthput.c | 4 | ||||
-rw-r--r-- | docs/examples/evhiperfifo.c | 5 | ||||
-rw-r--r-- | docs/examples/ghiper.c | 3 | ||||
-rw-r--r-- | docs/examples/hiperfifo.c | 5 |
5 files changed, 11 insertions, 8 deletions
diff --git a/docs/examples/10-at-a-time.c b/docs/examples/10-at-a-time.c index aa1862ec5..455529182 100644 --- a/docs/examples/10-at-a-time.c +++ b/docs/examples/10-at-a-time.c @@ -86,7 +86,7 @@ static const char *urls[] = { }; #define MAX 10 /* number of simultaneous transfers */ -#define CNT sizeof(urls)/sizeof(char*) /* total number of transfers to do */ +#define CNT sizeof(urls)/sizeof(char *) /* total number of transfers to do */ static size_t cb(char *d, size_t n, size_t l, void *p) { diff --git a/docs/examples/anyauthput.c b/docs/examples/anyauthput.c index b1367deb8..1c9f965d5 100644 --- a/docs/examples/anyauthput.c +++ b/docs/examples/anyauthput.c @@ -147,13 +147,13 @@ int main(int argc, char **argv) curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); /* which file to upload */ - curl_easy_setopt(curl, CURLOPT_READDATA, (void*)&hd); + curl_easy_setopt(curl, CURLOPT_READDATA, (void *)&hd); /* set the ioctl function */ curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, my_ioctl); /* pass the file descriptor to the ioctl callback as well */ - curl_easy_setopt(curl, CURLOPT_IOCTLDATA, (void*)&hd); + curl_easy_setopt(curl, CURLOPT_IOCTLDATA, (void *)&hd); /* enable "uploading" (which means PUT when doing HTTP) */ curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); diff --git a/docs/examples/evhiperfifo.c b/docs/examples/evhiperfifo.c index 118f152ee..52f682818 100644 --- a/docs/examples/evhiperfifo.c +++ b/docs/examples/evhiperfifo.c @@ -86,7 +86,7 @@ typedef struct _GlobalInfo struct ev_timer timer_event; CURLM *multi; int still_running; - FILE* input; + FILE *input; } GlobalInfo; @@ -243,7 +243,8 @@ static void remsock(SockInfo *f, GlobalInfo *g) /* Assign information to a SockInfo structure */ -static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g) +static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act, + GlobalInfo *g) { printf("%s \n", __PRETTY_FUNCTION__); diff --git a/docs/examples/ghiper.c b/docs/examples/ghiper.c index 7317a63d8..ce5b147a9 100644 --- a/docs/examples/ghiper.c +++ b/docs/examples/ghiper.c @@ -206,7 +206,8 @@ static void remsock(SockInfo *f) } /* Assign information to a SockInfo structure */ -static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g) +static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act, + GlobalInfo *g) { GIOCondition kind = (act&CURL_POLL_IN?G_IO_IN:0)|(act&CURL_POLL_OUT?G_IO_OUT:0); diff --git a/docs/examples/hiperfifo.c b/docs/examples/hiperfifo.c index 98bcafe6d..dce009c5b 100644 --- a/docs/examples/hiperfifo.c +++ b/docs/examples/hiperfifo.c @@ -82,7 +82,7 @@ typedef struct _GlobalInfo struct event *timer_event; CURLM *multi; int still_running; - FILE* input; + FILE *input; } GlobalInfo; @@ -230,7 +230,8 @@ static void remsock(SockInfo *f) /* Assign information to a SockInfo structure */ -static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g) +static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act, + GlobalInfo *g) { int kind = (act&CURL_POLL_IN?EV_READ:0)|(act&CURL_POLL_OUT?EV_WRITE:0)|EV_PERSIST; |