Use correct prototype for DbgPrint. Thanks to Hartmut for pointing this out.
authorGé van Geldorp <ge@gse.nl>
Sat, 26 Nov 2005 23:26:04 +0000 (23:26 +0000)
committerGé van Geldorp <ge@gse.nl>
Sat, 26 Nov 2005 23:26:04 +0000 (23:26 +0000)
svn path=/trunk/; revision=19665

reactos/lib/inflib/builddep.h
reactos/lib/inflib/infhostglue.c
reactos/lib/inflib/inflib.mak

index faee96e..5cd4587 100644 (file)
@@ -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) */
 
index 9aba2a7..6db00e4 100644 (file)
 #define NDEBUG
 #include <debug.h>
 
-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 */
index 92335e0..9565253 100755 (executable)
@@ -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