Deleted Added
full compact
libusb10.c (226220) libusb10.c (228235)
1/* $FreeBSD: head/lib/libusb/libusb10.c 226220 2011-10-10 16:13:33Z hselasky $ */
1/* $FreeBSD: head/lib/libusb/libusb10.c 228235 2011-12-03 16:19:07Z hselasky $ */
2/*-
3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved.
4 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 412 unchanged lines hidden (view full) ---

422 pdesc = libusb20_dev_get_device_desc(pdev);
423 /*
424 * NOTE: The USB library will automatically swap the
425 * fields in the device descriptor to be of host
426 * endian type!
427 */
428 if (pdesc->idVendor == vendor_id &&
429 pdesc->idProduct == product_id) {
2/*-
3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved.
4 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 412 unchanged lines hidden (view full) ---

422 pdesc = libusb20_dev_get_device_desc(pdev);
423 /*
424 * NOTE: The USB library will automatically swap the
425 * fields in the device descriptor to be of host
426 * endian type!
427 */
428 if (pdesc->idVendor == vendor_id &&
429 pdesc->idProduct == product_id) {
430 if (libusb_open(devs[j], &pdev) < 0)
431 pdev = NULL;
430 libusb_open(devs[j], &pdev);
432 break;
433 }
434 }
435 if (j == i)
436 pdev = NULL;
437
438 libusb_free_device_list(devs, 1);
439 DPRINTF(ctx, LIBUSB_DEBUG_FUNCTION, "libusb_open_device_width_vid_pid leave");

--- 1083 unchanged lines hidden ---
431 break;
432 }
433 }
434 if (j == i)
435 pdev = NULL;
436
437 libusb_free_device_list(devs, 1);
438 DPRINTF(ctx, LIBUSB_DEBUG_FUNCTION, "libusb_open_device_width_vid_pid leave");

--- 1083 unchanged lines hidden ---