mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Fixed 'implicid declaration' warnings.
svn path=/trunk/; revision=424
This commit is contained in:
parent
ddd8467f99
commit
490e4d94fc
6 changed files with 15 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
|||
#include <ddk/ntddk.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
HANDLE OutputHandle;
|
||||
HANDLE InputHandle;
|
||||
|
|
|
@ -240,7 +240,7 @@ void ReadLine(char* line)
|
|||
*line = 0;
|
||||
}
|
||||
|
||||
void main()
|
||||
void main(void)
|
||||
{
|
||||
static char line[255];
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <string.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
|
|
@ -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, ...)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include <windows.h>
|
||||
#include <ddk/ntddk.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
VOID STDCALL OutputDebugStringA(LPCSTR lpOutputString)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue