Fixed some compilation warnings.

merge-requests/1/head
Henning Geinitz 2005-08-07 15:53:03 +00:00
rodzic 2d224c4a75
commit b29ea31da2
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -12,6 +12,7 @@
* configure configure.in include/sane/config.h.in
sanei/sanei_usb.c: Added support for usb functionality on OS/2
using the usbcalls interface (patch from Paul Smedley
<paul@smedley.info>).
<paul@smedley.info>).
* sanei/sanei_usb.c: Fixed some compilation warnings.
Older entries can be found in ChangeLog-1.0.16.

Wyświetl plik

@ -156,7 +156,7 @@ typedef struct
unsigned short index;
unsigned short length;
}
devrequest __attribute__ ((packed));
devrequest;
/* From /usr/src/linux/driver/usb/scanner.h */
struct ctrlmsg_ioctl
@ -815,8 +815,7 @@ sanei_usb_open (SANE_String_Const devname, SANE_Int * dn)
int address, direction, transfer_type;
endpoint = &interface->endpoint[num];
DBG (5, "sanei_usb_open:num: %d endpoint: 0x%x\n", num,
endpoint);
DBG (5, "sanei_usb_open: endpoint nr: %d\n", num);
transfer_type =
endpoint->bmAttributes & USB_ENDPOINT_TYPE_MASK;
address =
@ -825,12 +824,12 @@ sanei_usb_open (SANE_String_Const devname, SANE_Int * dn)
direction =
endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK;
DBG (5, "sanei_usb_open: direction: %d)\n", direction);
DBG (5, "sanei_usb_open: direction: %d\n", direction);
transfer_type =
endpoint->bmAttributes & USB_ENDPOINT_TYPE_MASK;
DBG (5,
"sanei_usb_open: address: %d transfertype: %d\n",
"sanei_usb_open: address: %d transfertype: %d\n",
address, transfer_type);