mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
Fix all warnings detected by gcc 4.2
Patch by Thomas Weidenmueller svn path=/trunk/; revision=23689
This commit is contained in:
parent
0c186af160
commit
cd01646b34
|
@ -605,7 +605,7 @@ CHAR
|
||||||
umss_bulkonly_get_maxlun(IN PUMSS_DEVICE_EXTENSION pdev_ext)
|
umss_bulkonly_get_maxlun(IN PUMSS_DEVICE_EXTENSION pdev_ext)
|
||||||
{
|
{
|
||||||
PURB purb = NULL;
|
PURB purb = NULL;
|
||||||
CHAR max_lun;
|
UCHAR max_lun;
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
|
|
||||||
purb = usb_alloc_mem(NonPagedPool, sizeof(URB));
|
purb = usb_alloc_mem(NonPagedPool, sizeof(URB));
|
||||||
|
|
|
@ -42,7 +42,7 @@ typedef struct _USB_DRIVER_DESCRIPTION
|
||||||
BYTE if_protocol; // Interface Protocol
|
BYTE if_protocol; // Interface Protocol
|
||||||
|
|
||||||
// Driver Info
|
// Driver Info
|
||||||
PBYTE driver_name; // Driver name for Name Registry
|
const char *driver_name; // Driver name for Name Registry
|
||||||
BYTE dev_class; // Device Class (from SampleStorageDeviceID.h)
|
BYTE dev_class; // Device Class (from SampleStorageDeviceID.h)
|
||||||
BYTE dev_sub_class; // Device Subclass
|
BYTE dev_sub_class; // Device Subclass
|
||||||
BYTE dev_protocol; // Protocol Info.
|
BYTE dev_protocol; // Protocol Info.
|
||||||
|
|
|
@ -1343,7 +1343,7 @@ gendrv_delete_device(PUSB_DEV_MANAGER dev_mgr, PDEVICE_OBJECT dev_obj)
|
||||||
BOOLEAN is_if;
|
BOOLEAN is_if;
|
||||||
PUSB_DRIVER pdrvr;
|
PUSB_DRIVER pdrvr;
|
||||||
PGENDRV_DEVICE_EXTENSION pdev_ext;
|
PGENDRV_DEVICE_EXTENSION pdev_ext;
|
||||||
UCHAR dev_name[64];
|
CHAR dev_name[64];
|
||||||
STRING string;
|
STRING string;
|
||||||
UNICODE_STRING symb_link;
|
UNICODE_STRING symb_link;
|
||||||
PGENDRV_DRVR_EXTENSION pdrvr_ext;
|
PGENDRV_DRVR_EXTENSION pdrvr_ext;
|
||||||
|
@ -1579,7 +1579,7 @@ gendrv_startio(IN PDEVICE_OBJECT dev_obj, IN PIRP irp)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
IoSetCancelRoutine(irp, NULL);
|
(void)IoSetCancelRoutine(irp, NULL);
|
||||||
}
|
}
|
||||||
IoReleaseCancelSpinLock(old_irql);
|
IoReleaseCancelSpinLock(old_irql);
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ umss_create_port_device(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER pdriver)
|
||||||
// and upper driver use this to register itself
|
// and upper driver use this to register itself
|
||||||
// with umss driver for future notification of
|
// with umss driver for future notification of
|
||||||
// pnp event. 2004-03-22 23:12:41
|
// pnp event. 2004-03-22 23:12:41
|
||||||
UCHAR dev_name[64];
|
CHAR dev_name[64];
|
||||||
STRING string;
|
STRING string;
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
PDEVICE_OBJECT pdev;
|
PDEVICE_OBJECT pdev;
|
||||||
|
@ -136,7 +136,7 @@ umss_create_port_device(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER pdriver)
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
umss_delete_port_device(PDEVICE_OBJECT dev_obj)
|
umss_delete_port_device(PDEVICE_OBJECT dev_obj)
|
||||||
{
|
{
|
||||||
UCHAR dev_name[64];
|
CHAR dev_name[64];
|
||||||
STRING string;
|
STRING string;
|
||||||
UNICODE_STRING symb_link;
|
UNICODE_STRING symb_link;
|
||||||
|
|
||||||
|
@ -305,7 +305,7 @@ PDEVICE_OBJECT
|
||||||
umss_create_device(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER umss_drvr, DEV_HANDLE dev_handle, BOOLEAN is_if)
|
umss_create_device(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER umss_drvr, DEV_HANDLE dev_handle, BOOLEAN is_if)
|
||||||
{
|
{
|
||||||
|
|
||||||
UCHAR dev_name[64], dev_id;
|
CHAR dev_name[64], dev_id;
|
||||||
STRING string;
|
STRING string;
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
PDEVICE_OBJECT pdev;
|
PDEVICE_OBJECT pdev;
|
||||||
|
@ -708,7 +708,7 @@ umss_deferred_delete_device(PVOID context)
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
umss_delete_device(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER pdrvr, PDEVICE_OBJECT dev_obj, BOOLEAN is_if)
|
umss_delete_device(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER pdrvr, PDEVICE_OBJECT dev_obj, BOOLEAN is_if)
|
||||||
{
|
{
|
||||||
UCHAR dev_name[64];
|
CHAR dev_name[64];
|
||||||
STRING string;
|
STRING string;
|
||||||
UNICODE_STRING symb_link;
|
UNICODE_STRING symb_link;
|
||||||
PUMSS_DEVICE_EXTENSION pdev_ext;
|
PUMSS_DEVICE_EXTENSION pdev_ext;
|
||||||
|
|
Loading…
Reference in a new issue