Changed %p formatter to APRs %pp (wish that was documented).

Marked msr_log() as a printf style function so GNU compiler can check formatting types.
Fixed a few other warnings with msr_log() formatters.
This commit is contained in:
brectanus
2007-11-26 22:53:51 +00:00
parent 9447ae67b8
commit e47fdeb420
10 changed files with 24 additions and 19 deletions

View File

@@ -30,6 +30,11 @@ typedef struct msc_string msc_string;
#define DSOLOCAL
#endif
/* For GNU C, tell the compiler to check printf like formatters */
#if defined(__GNUC__)
#define PRINTF_ATTRIBUTE(a,b) __attribute__((format (printf, a, b)))
#endif
#include "msc_logging.h"
#include "msc_multipart.h"
#include "msc_pcre.h"