[libxml2] xmllint: Build fix for endTimer if !defined(HAVE_GETTIMEOFDAY)
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] xmllint: Build fix for endTimer if !defined(HAVE_GETTIMEOFDAY)
- Date: Thu, 10 May 2012 14:18:52 +0000 (UTC)
commit 023206fc0839de485a69aeec44ac7a89fcbe8bf6
Author: Patrick R. Gansterer <paroga paroga com>
Date: Thu May 10 22:17:51 2012 +0800
xmllint: Build fix for endTimer if !defined(HAVE_GETTIMEOFDAY)
For https://bugzilla.gnome.org/show_bug.cgi?id=638649
code was broken !
xmllint.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/xmllint.c b/xmllint.c
index 39d7138..3ca8077 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -520,10 +520,11 @@ endTimer(char *format, ...)
* We cannot do anything because we don't have a timing function
*/
#ifdef HAVE_STDARG_H
+ va_list ap;
va_start(ap, format);
vfprintf(stderr, format, ap);
va_end(ap);
- fprintf(stderr, " was not timed\n", msec);
+ fprintf(stderr, " was not timed\n");
#else
/* We don't have gettimeofday, time or stdarg.h, what crazy world is
* this ?!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]