| Index: third_party/libusb/src/examples/dpfp.c
|
| diff --git a/third_party/libusb/src/examples/dpfp.c b/third_party/libusb/src/examples/dpfp.c
|
| index ecd5a92355c2b047363db677c88688fcc55787f7..3f41e0e751539ca70a07173f966f0f8ab55ccbe3 100644
|
| --- a/third_party/libusb/src/examples/dpfp.c
|
| +++ b/third_party/libusb/src/examples/dpfp.c
|
| @@ -1,6 +1,6 @@
|
| /*
|
| - * libusb example program to manipulate U.are.U 4000B fingerprint scanner.
|
| - * Copyright (C) 2007 Daniel Drake <dsd@gentoo.org>
|
| + * libusbx example program to manipulate U.are.U 4000B fingerprint scanner.
|
| + * Copyright © 2007 Daniel Drake <dsd@gentoo.org>
|
| *
|
| * Basic image capture program only, does not consider the powerup quirks or
|
| * the fact that image encryption may be enabled. Not expected to work
|
| @@ -27,7 +27,7 @@
|
| #include <stdio.h>
|
| #include <stdlib.h>
|
|
|
| -#include <libusb.h>
|
| +#include "libusb.h"
|
|
|
| #define EP_INTR (1 | LIBUSB_ENDPOINT_IN)
|
| #define EP_DATA (2 | LIBUSB_ENDPOINT_IN)
|
| @@ -164,7 +164,7 @@ static void LIBUSB_CALL cb_mode_changed(struct libusb_transfer *transfer)
|
|
|
| static int set_mode_async(unsigned char data)
|
| {
|
| - unsigned char *buf = malloc(LIBUSB_CONTROL_SETUP_SIZE + 1);
|
| + unsigned char *buf = (unsigned char*) malloc(LIBUSB_CONTROL_SETUP_SIZE + 1);
|
| struct libusb_transfer *transfer;
|
|
|
| if (!buf)
|
| @@ -504,4 +504,3 @@ out:
|
| libusb_exit(NULL);
|
| return r >= 0 ? r : -r;
|
| }
|
| -
|
|
|