From 9ac03e5aae9c01141e17b0ff2485cb674c10c63e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 26 Nov 2005 23:26:04 +0000 Subject: [PATCH] Use correct prototype for DbgPrint. Thanks to Hartmut for pointing this out. svn path=/trunk/; revision=19665 --- reactos/lib/inflib/builddep.h | 2 +- reactos/lib/inflib/infhostglue.c | 6 ++++-- reactos/lib/inflib/inflib.mak | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/reactos/lib/inflib/builddep.h b/reactos/lib/inflib/builddep.h index faee96e7bed..5cd458708b4 100644 --- a/reactos/lib/inflib/builddep.h +++ b/reactos/lib/inflib/builddep.h @@ -44,7 +44,7 @@ typedef char TCHAR, *PTCHAR, *PTSTR; #define _tcstol strtol #define STRFMT "%s" -extern void DbgPrint(const char *Fmt, ...); +extern unsigned long DbgPrint(char *Fmt, ...); #else /* ! defined(INFLIB_HOST) */ diff --git a/reactos/lib/inflib/infhostglue.c b/reactos/lib/inflib/infhostglue.c index 9aba2a707cc..6db00e4ae27 100644 --- a/reactos/lib/inflib/infhostglue.c +++ b/reactos/lib/inflib/infhostglue.c @@ -11,14 +11,16 @@ #define NDEBUG #include -void -DbgPrint(const char *Fmt, ...) +unsigned long +DbgPrint(char *Fmt, ...) { va_list Args; va_start(Args, Fmt); vfprintf(stderr, Fmt, Args); va_end(Args); + + return 0; } /* EOF */ diff --git a/reactos/lib/inflib/inflib.mak b/reactos/lib/inflib/inflib.mak index 92335e08d0c..95652537248 100755 --- a/reactos/lib/inflib/inflib.mak +++ b/reactos/lib/inflib/inflib.mak @@ -31,7 +31,7 @@ INFLIB_HOST_SOURCES = $(addprefix $(INFLIB_BASE_), \ INFLIB_HOST_OBJECTS = \ $(subst $(INFLIB_BASE), $(INFLIB_INT), $(INFLIB_HOST_SOURCES:.c=.o)) -INFLIB_HOST_CFLAGS = -O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ +INFLIB_HOST_CFLAGS = -O3 -Wall -Wpointer-arith -Wconversion \ -Wstrict-prototypes -Wmissing-prototypes -DINFLIB_HOST -D_M_IX86 \ -I$(INFLIB_BASE) -Iinclude/reactos -DDBG