mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
fixup warnings on vista/mingw.
git-svn-id: file:///svn/unbound/trunk@1494 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
23ab46e3a5
commit
c2261b63f1
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
24 February 2009: Wouter
|
24 February 2009: Wouter
|
||||||
- isc moved their dlv key download location.
|
- isc moved their dlv key download location.
|
||||||
|
- fixup warning on vista/mingw.
|
||||||
|
|
||||||
20 February 2009: Wouter
|
20 February 2009: Wouter
|
||||||
- Fixup contrib/update-itar.sh, the exit codes 1 and 0 were swapped.
|
- Fixup contrib/update-itar.sh, the exit codes 1 and 0 were swapped.
|
||||||
|
|
|
||||||
|
|
@ -151,10 +151,12 @@ log_vmsg(int pri, const char* type,
|
||||||
const char *format, va_list args)
|
const char *format, va_list args)
|
||||||
{
|
{
|
||||||
char message[MAXSYSLOGMSGLEN];
|
char message[MAXSYSLOGMSGLEN];
|
||||||
char tmbuf[32];
|
|
||||||
unsigned int* tid = (unsigned int*)ub_thread_key_get(logkey);
|
unsigned int* tid = (unsigned int*)ub_thread_key_get(logkey);
|
||||||
time_t now;
|
time_t now;
|
||||||
|
#if defined(HAVE_STRFTIME) && defined(HAVE_LOCALTIME_R)
|
||||||
|
char tmbuf[32];
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
|
#endif
|
||||||
(void)pri;
|
(void)pri;
|
||||||
vsnprintf(message, sizeof(message), format, args);
|
vsnprintf(message, sizeof(message), format, args);
|
||||||
#ifdef HAVE_SYSLOG_H
|
#ifdef HAVE_SYSLOG_H
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue