- Eliminate function pointer typecasts in csqtest
authorFilip Navara <filip.navara@gmail.com>
Fri, 13 Feb 2004 09:37:11 +0000 (09:37 +0000)
committerFilip Navara <filip.navara@gmail.com>
Fri, 13 Feb 2004 09:37:11 +0000 (09:37 +0000)
- Move the csq.h header to the right place
- Added .cvsignore files

svn path=/trunk/; revision=8163

reactos/drivers/lib/csq/.cvsignore [new file with mode: 0644]
reactos/drivers/test/csqtest/.cvsignore [new file with mode: 0644]
reactos/drivers/test/csqtest/csqtest.c
reactos/include/ddk/csq.h [moved from reactos/drivers/lib/csq/csq.h with 100% similarity]

diff --git a/reactos/drivers/lib/csq/.cvsignore b/reactos/drivers/lib/csq/.cvsignore
new file mode 100644 (file)
index 0000000..77f6c71
--- /dev/null
@@ -0,0 +1,5 @@
+*.coff
+*.sym
+*.sys
+*.o
+*.map
diff --git a/reactos/drivers/test/csqtest/.cvsignore b/reactos/drivers/test/csqtest/.cvsignore
new file mode 100644 (file)
index 0000000..77f6c71
--- /dev/null
@@ -0,0 +1,5 @@
+*.coff
+*.sym
+*.sys
+*.o
+*.map
index 4b6b22e..3a6c217 100644 (file)
@@ -182,16 +182,16 @@ NTSTATUS NTAPI DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING Registry
        UNICODE_STRING NtName;
        UNICODE_STRING DosName;
 
        UNICODE_STRING NtName;
        UNICODE_STRING DosName;
 
-       DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)DispatchCreateCloseCleanup;
-       DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)DispatchCreateCloseCleanup;
-       DriverObject->MajorFunction[IRP_MJ_CLEANUP] = (PDRIVER_DISPATCH)DispatchCreateCloseCleanup;
-       DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)DispatchReadWrite;
-       DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)DispatchReadWrite;
-       DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH)DispatchIoctl;
-       DriverObject->DriverUnload = (PDRIVER_UNLOAD)Unload;
-
-       Status = IoCsqInitialize(&Csq, (PIO_CSQ_INSERT_IRP)CsqInsertIrp, CsqRemoveIrp, CsqPeekNextIrp, 
-                                                                                                        CsqAcquireLock, (PIO_CSQ_RELEASE_LOCK)CsqReleaseLock, CsqCompleteCancelledIrp);
+       DriverObject->MajorFunction[IRP_MJ_CREATE] = DispatchCreateCloseCleanup;
+       DriverObject->MajorFunction[IRP_MJ_CLOSE] = DispatchCreateCloseCleanup;
+       DriverObject->MajorFunction[IRP_MJ_CLEANUP] = DispatchCreateCloseCleanup;
+       DriverObject->MajorFunction[IRP_MJ_READ] = DispatchReadWrite;
+       DriverObject->MajorFunction[IRP_MJ_WRITE] = DispatchReadWrite;
+       DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = DispatchIoctl;
+       DriverObject->DriverUnload = Unload;
+
+       Status = IoCsqInitialize(&Csq, CsqInsertIrp, CsqRemoveIrp, CsqPeekNextIrp, 
+                                                                                                        CsqAcquireLock, CsqReleaseLock, CsqCompleteCancelledIrp);
 
        if(Status != STATUS_SUCCESS)
                KdPrint(("csqtest: IoCsqInitalize failed: 0x%x\n", Status));
 
        if(Status != STATUS_SUCCESS)
                KdPrint(("csqtest: IoCsqInitalize failed: 0x%x\n", Status));