diff options
author | Yang Tse <yangsita@gmail.com> | 2011-09-02 19:40:53 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-09-02 19:40:53 +0200 |
commit | 9194e1700312f27c6e2abdfb1f604e130497e887 (patch) | |
tree | b8aff846ffca0041e9865850875025968fa9fc7e /lib/mprintf.c | |
parent | 749dbfbc87d6043c4bfb57041ecbf2be6a1d42bb (diff) | |
download | curl-9194e1700312f27c6e2abdfb1f604e130497e887.tar.gz |
MemoryTracking: fix logging of free() calls done where Curl_safefree is called
Just internal stuff...
Curl_safefree is now a macro defined in memdebug.h instead of a function
prototyped in url.h and implemented in url.c, so inclusion of url.h is no
longer required in order to simply use Curl_safefree.
Provide definition of macro WHILE_FALSE in setup_once.h in order to allow
other macros such as DEBUGF and DEBUGASSERT, and code using it, to compile
without 'conditional expression is constant' warnings.
The WHILE_FALSE stuff fixes 150+ MSVC compiler warnings.
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r-- | lib/mprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index 38732e099..0990f4024 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -103,7 +103,7 @@ static const char upper_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; done++; \ else \ return done; /* return immediately on failure */ \ - } while(0) + } WHILE_FALSE /* Data type to read from the arglist */ typedef enum { |