[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 197/254: examples/externalsocket.c: s/closesocket/c
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 197/254: examples/externalsocket.c: s/closesocket/closecb |
Date: |
Sat, 17 Jun 2017 16:53:49 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.
commit c5de7f50f73919ead96aa1b541090cb25d63b012
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed May 31 23:22:46 2017 +0200
examples/externalsocket.c: s/closesocket/closecb
... since closesocket is a function in WinSock.
Reported-by: Marcel Raad
Bug:
https://github.com/curl/curl/commit/55fcb8485914700132fd1854c9509b66c955efbe#co
mmitcomment-22347818
---
docs/examples/externalsocket.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/examples/externalsocket.c b/docs/examples/externalsocket.c
index 9adb0dc4f..0ac113db3 100644
--- a/docs/examples/externalsocket.c
+++ b/docs/examples/externalsocket.c
@@ -58,7 +58,7 @@ static size_t write_data(void *ptr, size_t size, size_t
nmemb, void *stream)
return written;
}
-static int closesocket(void *clientp, curl_socket_t item)
+static int closecb(void *clientp, curl_socket_t item)
{
(void)clientp;
printf("libcurl wants to close %d now\n", (int)item);
@@ -145,7 +145,7 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_OPENSOCKETDATA, &sockfd);
/* call this function to close sockets */
- curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, closesocket);
+ curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, closecb);
curl_easy_setopt(curl, CURLOPT_CLOSESOCKETDATA, &sockfd);
/* call this function to set options for the socket */
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 131/254: multi: remove leftover debug infof() calls from e9fd794a6, (continued)
- [GNUnet-SVN] [gnurl] 131/254: multi: remove leftover debug infof() calls from e9fd794a6, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 51/254: tool: Fix missing prototype warnings for CURL_DOES_CONVERSIONS, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 43/254: unit1604: fixed indentation, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 220/254: CONTRIBUTE.md: mention tests done on pull requests, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 141/254: man pages: fix example syntax errors, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 137/254: url.c: add a compile-time check that CURL_MAX_WRITE_SIZE is large enough, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 133/254: tests: made a couple of prechecks consistent with others, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 210/254: mbedtls: make TU-local variable static, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 243/254: gitignore: ignore all vim swap files, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 68/254: sendf: remove use of BUFSIZE from debug data conversions, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 197/254: examples/externalsocket.c: s/closesocket/closecb,
gnunet <=
- [GNUnet-SVN] [gnurl] 201/254: typecheck-gcc.h: check CURLINFO_TLS_SSL_PTR and CURLINFO_TLS_SESSION, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 253/254: release: 7.54.1, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 97/254: docs/opts: 24 more man pages now have examples, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 74/254: testpart: remove _MPRINTF_REPLACE, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 193/254: CURLOPT_FNMATCH_FUNCTION.3: also modified example to avoid fcpp issues, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 222/254: curl_ntlm_core: pass unsigned char to toupper, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 163/254: cmake: fix build on Ubuntu 14.04, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 185/254: build-wolfssl: Sync config with wolfSSL 3.11, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 208/254: test1538: fix typo, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 111/254: curl.1: depend the build on the Makefile.inc too, gnunet, 2017/06/17