From 5afc69487981557710037f6bfd858fc81fd4ffee Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 14 Aug 2001 08:31:27 +0000 Subject: const-ified lots of function arguments --- lib/memdebug.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'lib/memdebug.h') diff --git a/lib/memdebug.h b/lib/memdebug.h index 03f154a1e..419b8b943 100644 --- a/lib/memdebug.h +++ b/lib/memdebug.h @@ -7,21 +7,22 @@ #endif /* memory functions */ -void *curl_domalloc(size_t size, int line, char *source); -void *curl_dorealloc(void *ptr, size_t size, int line, char *source); -void curl_dofree(void *ptr, int line, char *source); -char *curl_dostrdup(const char *str, int line, char *source); +void *curl_domalloc(size_t size, int line, const char *source); +void *curl_dorealloc(void *ptr, size_t size, int line, const char *source); +void curl_dofree(void *ptr, int line, const char *source); +char *curl_dostrdup(const char *str, int line, const char *source); void curl_memdebug(char *logname); /* file descriptor manipulators */ -int curl_socket(int domain, int type, int protocol, int, char *); -int curl_sclose(int sockfd, int, char *); +int curl_socket(int domain, int type, int protocol, int, const char *); +int curl_sclose(int sockfd, int, const char *source); int curl_accept(int s, struct sockaddr *addr, socklen_t *addrlen, - int line, char *source); + int line, const char *source); /* FILE functions */ -FILE *curl_fopen(char *file, char *mode, int line, char *source); -int curl_fclose(FILE *file, int line, char *source); +FILE *curl_fopen(const char *file, const char *mode, int line, + const char *source); +int curl_fclose(FILE *file, int line, const char *source); /* Set this symbol on the command-line, recompile all lib-sources */ #define strdup(ptr) curl_dostrdup(ptr, __LINE__, __FILE__) -- cgit v1.2.3