mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Fix compiler warning: control reaches end of non-void function
This commit is contained in:
parent
b205525d34
commit
308497ffc6
@ -264,7 +264,7 @@ int curl_accept(int s, void *saddr, void *saddrlen,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* separate function to allow libcurl to mark a "faked" close */
|
/* separate function to allow libcurl to mark a "faked" close */
|
||||||
int curl_mark_sclose(int sockfd, int line, const char *source)
|
void curl_mark_sclose(int sockfd, int line, const char *source)
|
||||||
{
|
{
|
||||||
if(logfile)
|
if(logfile)
|
||||||
fprintf(logfile, "FD %s:%d sclose(%d)\n",
|
fprintf(logfile, "FD %s:%d sclose(%d)\n",
|
||||||
|
@ -57,7 +57,7 @@ CURL_EXTERN void curl_memlimit(long limit);
|
|||||||
|
|
||||||
/* file descriptor manipulators */
|
/* file descriptor manipulators */
|
||||||
CURL_EXTERN int curl_socket(int domain, int type, int protocol, int line , const char *);
|
CURL_EXTERN int curl_socket(int domain, int type, int protocol, int line , const char *);
|
||||||
CURL_EXTERN int curl_mark_sclose(int sockfd, int, const char *source);
|
CURL_EXTERN void curl_mark_sclose(int sockfd, int, const char *source);
|
||||||
CURL_EXTERN int curl_sclose(int sockfd, int, const char *source);
|
CURL_EXTERN int curl_sclose(int sockfd, int, const char *source);
|
||||||
CURL_EXTERN int curl_accept(int s, void *addr, void *addrlen,
|
CURL_EXTERN int curl_accept(int s, void *addr, void *addrlen,
|
||||||
int line, const char *source);
|
int line, const char *source);
|
||||||
|
Loading…
Reference in New Issue
Block a user