Fixed 'implicid declaration' warnings.

svn path=/trunk/; revision=424
This commit is contained in:
Eric Kohl 1999-04-29 23:36:08 +00:00
parent ddd8467f99
commit 490e4d94fc
6 changed files with 15 additions and 11 deletions

View file

@ -1,6 +1,7 @@
#include <ddk/ntddk.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
HANDLE OutputHandle;
HANDLE InputHandle;

View file

@ -240,7 +240,7 @@ void ReadLine(char* line)
*line = 0;
}
void main()
void main(void)
{
static char line[255];

View file

@ -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);

View file

@ -10,6 +10,7 @@
/* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <string.h>
#define NDEBUG
#include <internal/debug.h>

View file

@ -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 <windows.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
void debug_printf(char* fmt, ...)

View file

@ -1,6 +1,7 @@
#include <windows.h>
#include <ddk/ntddk.h>
#include <stdarg.h>
#include <stdio.h>
VOID STDCALL OutputDebugStringA(LPCSTR lpOutputString)
{