diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-24 07:43:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-24 07:43:48 +0000 |
commit | c39858aac0584716282dcb097ce9d972b43dbcb2 (patch) | |
tree | d61866d14e3dd56b0337652a7fddec69fb8f4e90 /lib/memdebug.c | |
parent | 818aed35e2f7c1602333c0b2ecc0444272966cc7 (diff) | |
download | curl-c39858aac0584716282dcb097ce9d972b43dbcb2.tar.gz |
Source cleanups. The major one being that we now _always_ use a Curl_addrinfo
linked list for name resolved data, even on hosts/systems with only IPv4
stacks as this simplifies a lot of code.
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r-- | lib/memdebug.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c index 718391cdb..f5ef34d44 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -1,9 +1,9 @@ #ifdef CURLDEBUG /*************************************************************************** - * _ _ ____ _ - * Project ___| | | | _ \| | - * / __| | | | |_) | | - * | (__| |_| | _ <| |___ + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al. @@ -11,7 +11,7 @@ * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are also available at http://curl.haxx.se/docs/copyright.html. - * + * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is * furnished to do so, under the terms of the COPYING file. @@ -99,12 +99,12 @@ static bool countcheck(const char *func, int line, const char *source) } else memsize--; /* countdown */ - + /* log the countdown */ if(logfile && source) fprintf(logfile, "LIMIT %s:%d %ld ALLOCS left\n", source, line, memsize); - + } return FALSE; /* allow this */ @@ -166,7 +166,7 @@ char *curl_dostrdup(const char *str, int line, const char *source) size_t len; curlassert(str != NULL); - + if(countcheck("strdup", line, source)) return NULL; @@ -221,7 +221,7 @@ void curl_dofree(void *ptr, int line, const char *source) /* destroy */ memset(mem->mem, 0x13, mem->size); - + /* free for real */ (Curl_cfree)(mem); @@ -285,7 +285,7 @@ int curl_fclose(FILE *file, int line, const char *source) } #else #ifdef VMS -int VOID_VAR_MEMDEBUG; +int VOID_VAR_MEMDEBUG; #else /* we provide a fake do-nothing function here to avoid compiler warnings */ void curl_memdebug(void) {} |