X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdrivers%2Fdd%2Fparallel%2Fparallel.c;h=41f5af36fd463e6962f26788f5448f59acd04643;hp=a2959fd45eb4b007a2fbfe21d357d656f3cbbb1f;hb=6b36b1e871b01af52b7491d47cccdc3ad0a7c74c;hpb=cc6ffdce485bbccbaf8f1a33f132a1621257deba diff --git a/reactos/drivers/dd/parallel/parallel.c b/reactos/drivers/dd/parallel/parallel.c index a2959fd45eb..41f5af36fd4 100644 --- a/reactos/drivers/dd/parallel/parallel.c +++ b/reactos/drivers/dd/parallel/parallel.c @@ -12,7 +12,7 @@ /* FUNCTIONS **************************************************************/ -#include +#include #include "parallel.h" @@ -24,6 +24,9 @@ #define LP_S (READ_PORT_UCHAR((PUCHAR)(LP_B+1))) #define LP_C (LP_B+2) +NTSTATUS STDCALL +DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath); + static void Parallel_Reset(void) /* * FUNCTION: Resets the device attached to the parallel port @@ -68,7 +71,7 @@ static void Parallel_putchar(unsigned char ch) WRITE_PORT_UCHAR((PUCHAR)LP_C, LP_PSELECP | LP_PINITP); } -NTSTATUS STDCALL +static NTSTATUS STDCALL Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp) /* * FUNCTION: Handles user mode requests @@ -80,7 +83,7 @@ Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp) { PIO_STACK_LOCATION Stack = IoGetCurrentIrpStackLocation(Irp); NTSTATUS status; - UINT i; + ULONG i; switch (Stack->MajorFunction) {