aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-10-29 04:02:21 +0000
committerYang Tse <yangsita@gmail.com>2009-10-29 04:02:21 +0000
commit308497ffc636cb863c8d4a99f1c4cf7530b01f55 (patch)
tree679df5ffe2b85b1432b96cf4250bc19a57c11cd4 /lib
parentb205525d3481553ce073887e0bd7e90502c1432f (diff)
Fix compiler warning: control reaches end of non-void function
Diffstat (limited to 'lib')
-rw-r--r--lib/memdebug.c2
-rw-r--r--lib/memdebug.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index ea3eb8559..99bce6a5d 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -264,7 +264,7 @@ int curl_accept(int s, void *saddr, void *saddrlen,
}
/* 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)
fprintf(logfile, "FD %s:%d sclose(%d)\n",
diff --git a/lib/memdebug.h b/lib/memdebug.h
index 57e89b1d4..ed1177b59 100644
--- a/lib/memdebug.h
+++ b/lib/memdebug.h
@@ -57,7 +57,7 @@ CURL_EXTERN void curl_memlimit(long limit);
/* file descriptor manipulators */
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_accept(int s, void *addr, void *addrlen,
int line, const char *source);