kopia lustrzana https://gitlab.com/sane-project/backends
Fix incompatible pointer type warning
rodzic
e13bee7577
commit
65ef626e1a
|
@ -3,6 +3,7 @@
|
||||||
* Makefile.in, */Makefile.in, tools/sane-config.in:
|
* Makefile.in, */Makefile.in, tools/sane-config.in:
|
||||||
Fix warnings about ignored --datarootdir
|
Fix warnings about ignored --datarootdir
|
||||||
* backend/hp5590_low.c: Fix incompatible pointer type warning
|
* backend/hp5590_low.c: Fix incompatible pointer type warning
|
||||||
|
* backend/genesys_gl646.c: Fix incompatible pointer type warning
|
||||||
|
|
||||||
2008-02-02 Mattias Ellert <mattias.ellert@tsl.uu.se>
|
2008-02-02 Mattias Ellert <mattias.ellert@tsl.uu.se>
|
||||||
|
|
||||||
|
|
|
@ -259,7 +259,8 @@ gl646_bulk_write_register (Genesys_Device * dev,
|
||||||
SANE_Status status;
|
SANE_Status status;
|
||||||
u_int8_t outdata[8];
|
u_int8_t outdata[8];
|
||||||
u_int8_t buffer[GENESYS_MAX_REGS * 2];
|
u_int8_t buffer[GENESYS_MAX_REGS * 2];
|
||||||
unsigned int i, size;
|
size_t size;
|
||||||
|
unsigned int i;
|
||||||
|
|
||||||
/* handle differently sized register sets, reg[0x00] may be the last one */
|
/* handle differently sized register sets, reg[0x00] may be the last one */
|
||||||
i = 0;
|
i = 0;
|
||||||
|
@ -311,8 +312,8 @@ gl646_bulk_write_register (Genesys_Device * dev,
|
||||||
for (i = 0; i < size; i += 2)
|
for (i = 0; i < size; i += 2)
|
||||||
DBG (DBG_io2, "reg[0x%02x] = 0x%02x\n", buffer[i], buffer[i + 1]);
|
DBG (DBG_io2, "reg[0x%02x] = 0x%02x\n", buffer[i], buffer[i + 1]);
|
||||||
|
|
||||||
DBG (DBG_io, "gl646_bulk_write_register: wrote %d bytes, %d registers\n",
|
DBG (DBG_io, "gl646_bulk_write_register: wrote %lu bytes, %lu registers\n",
|
||||||
size, elems);
|
(u_long) size, (u_long) elems);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue