mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-01-21 09:08:17 +01:00
Merge pull request #3 from c72578/2019-05-28_use_memset_instead_of_bzero
Use memset() instead of bzero()
This commit is contained in:
commit
2b05d739e3
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ void control_transfer(libusb_device_handle *dev, const char *pquestion) {
|
||||||
|
|
||||||
void interrupt_read(libusb_device_handle *dev, unsigned char *answer) {
|
void interrupt_read(libusb_device_handle *dev, unsigned char *answer) {
|
||||||
int r,s,i;
|
int r,s,i;
|
||||||
bzero(answer, reqIntLen);
|
memset(answer, 0, reqIntLen);
|
||||||
|
|
||||||
s = libusb_interrupt_transfer(dev, endpoint_Int_in, answer, reqIntLen, &r, timeout);
|
s = libusb_interrupt_transfer(dev, endpoint_Int_in, answer, reqIntLen, &r, timeout);
|
||||||
if(r != reqIntLen) {
|
if(r != reqIntLen) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue