From 490e4d94fcd17639c6702eebf9c4172974aea27d Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 29 Apr 1999 23:36:08 +0000 Subject: [PATCH] Fixed 'implicid declaration' warnings. svn path=/trunk/; revision=424 --- reactos/apps/tests/args/args.c | 1 + reactos/apps/utils/shell/shell.c | 2 +- reactos/drivers/dd/serial/serial.c | 14 +++++++------- reactos/drivers/fs/minix/dir.c | 1 + reactos/lib/crtdll/misc/dllmain.c | 7 ++++--- reactos/lib/kernel32/internal/dprintf.c | 1 + 6 files changed, 15 insertions(+), 11 deletions(-) diff --git a/reactos/apps/tests/args/args.c b/reactos/apps/tests/args/args.c index 148f486a7e4..9e3aca04e8d 100644 --- a/reactos/apps/tests/args/args.c +++ b/reactos/apps/tests/args/args.c @@ -1,6 +1,7 @@ #include #include #include +#include HANDLE OutputHandle; HANDLE InputHandle; diff --git a/reactos/apps/utils/shell/shell.c b/reactos/apps/utils/shell/shell.c index b833fb40e29..7a74ef06546 100644 --- a/reactos/apps/utils/shell/shell.c +++ b/reactos/apps/utils/shell/shell.c @@ -240,7 +240,7 @@ void ReadLine(char* line) *line = 0; } -void main() +void main(void) { static char line[255]; diff --git a/reactos/drivers/dd/serial/serial.c b/reactos/drivers/dd/serial/serial.c index 6b52d1ccffa..38b7ebcffae 100644 --- a/reactos/drivers/dd/serial/serial.c +++ b/reactos/drivers/dd/serial/serial.c @@ -103,22 +103,22 @@ void InitializeSerial(void) { if(uart_detect(comports[i])==0) { - printk("%s not detected\n", comname[i]); + DbgPrint("%s not detected\n", comname[i]); } else { uart_init(comports[i]); irq_level=irq_setup(comports[i]); if(irq_level==-1) { - printk("Warning: IRQ not detected!\n"); + DbgPrint("Warning: IRQ not detected!\n"); } else { - printk("%s hooked to interrupt level %d\n", comname[i], irq_level); + DbgPrint("%s hooked to interrupt level %d\n", comname[i], irq_level); }; }; }; }; // For testing purposes -void testserial() +void testserial(void) { int i=0; char testc; @@ -128,7 +128,7 @@ void testserial() char character; } x; - printk("Testing serial input...\n"); + DbgPrint("Testing serial input...\n"); while(i==0) { x.val=uart_getchar(COM1); @@ -137,13 +137,13 @@ void testserial() testc=inb_p(COM1); -// printk("(%x-%c) %c\n", x.val, x.character, testc); +// DbgPrint("(%x-%c) %c\n", x.val, x.character, testc); }; }; NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) { - printk("Serial Driver 0.0.2\n"); + DbgPrint("Serial Driver 0.0.2\n"); InitializeSerial(); // testserial(); return(STATUS_SUCCESS); diff --git a/reactos/drivers/fs/minix/dir.c b/reactos/drivers/fs/minix/dir.c index 720e02d7960..2b5c9e79346 100644 --- a/reactos/drivers/fs/minix/dir.c +++ b/reactos/drivers/fs/minix/dir.c @@ -10,6 +10,7 @@ /* INCLUDES *****************************************************************/ #include +#include #define NDEBUG #include diff --git a/reactos/lib/crtdll/misc/dllmain.c b/reactos/lib/crtdll/misc/dllmain.c index a2f3fcbda7f..afadcf51e28 100644 --- a/reactos/lib/crtdll/misc/dllmain.c +++ b/reactos/lib/crtdll/misc/dllmain.c @@ -17,14 +17,15 @@ * DISCLAMED. This includes but is not limited to warrenties of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * $Revision: 1.3 $ - * $Author: ariadne $ - * $Date: 1999/04/23 18:42:21 $ + * $Revision: 1.4 $ + * $Author: ekohl $ + * $Date: 1999/04/29 23:34:23 $ * */ #include #include +#include #include void debug_printf(char* fmt, ...) diff --git a/reactos/lib/kernel32/internal/dprintf.c b/reactos/lib/kernel32/internal/dprintf.c index d248bf909ec..9e3aac00840 100644 --- a/reactos/lib/kernel32/internal/dprintf.c +++ b/reactos/lib/kernel32/internal/dprintf.c @@ -1,6 +1,7 @@ #include #include #include +#include VOID STDCALL OutputDebugStringA(LPCSTR lpOutputString) {