From owner-cvs-src-old@FreeBSD.ORG Thu Feb 11 08:24:54 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4445106566B for ; Thu, 11 Feb 2010 08:24:54 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D18C08FC14 for ; Thu, 11 Feb 2010 08:24:54 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o1B8OsHp064370 for ; Thu, 11 Feb 2010 08:24:54 GMT (envelope-from wkoszek@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o1B8Os6W064369 for cvs-src-old@freebsd.org; Thu, 11 Feb 2010 08:24:54 GMT (envelope-from wkoszek@repoman.freebsd.org) Message-Id: <201002110824.o1B8Os6W064369@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to wkoszek@repoman.freebsd.org using -f From: "Wojciech A. Koszek" Date: Thu, 11 Feb 2010 08:24:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libusb libusb20_compat01.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2010 08:24:55 -0000 wkoszek 2010-02-11 08:24:35 UTC FreeBSD src repository Modified files: lib/libusb libusb20_compat01.c Log: SVN rev 203773 on 2010-02-11 08:24:35Z by wkoszek Within libusb 0.1 API, bus number is always faked to 0. Device numbers, however, are possitive and seem to be reverse sorted in the list. Conform device numbering and bring a result that is consistent with the libusb 0.1 API. It is now possible to distinguish a device based on its (bus, dev) numbers. There shouldn't be any negative change in behavior after this commit. Tested with: scanimage (sane) http://freebsd.czest.pl/~wkoszek/qemu/l.c Reviewed by: hps@ Revision Changes Path 1.5 +3 -0 src/lib/libusb/libusb20_compat01.c