aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-14 08:31:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-14 08:31:27 +0000
commit5afc69487981557710037f6bfd858fc81fd4ffee (patch)
tree0ac0627597acd49353e2db769d3d3c7ef0ce1e06 /lib/memdebug.h
parentb1c57788f3d842cd11af88035e11d8b32a53671c (diff)
const-ified lots of function arguments
Diffstat (limited to 'lib/memdebug.h')
-rw-r--r--lib/memdebug.h19
1 files changed, 10 insertions, 9 deletions
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__)