From owner-p4-projects@FreeBSD.ORG Fri May 1 18:39:58 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5CB8E106566B; Fri, 1 May 2009 18:39:58 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B88C1065675 for ; Fri, 1 May 2009 18:39:58 +0000 (UTC) (envelope-from ccna.syl@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id C71088FC16 for ; Fri, 1 May 2009 18:39:57 +0000 (UTC) (envelope-from ccna.syl@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1560922ywe.13 for ; Fri, 01 May 2009 11:39:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=KS7jA4VLceKCXl1pEf1Ld8JH8wNvsZ8u0yXtgRLU+BY=; b=HCgJJDd/UcTTyEvPFw5JJ2b4nDG82jSO9eT+4Q14FTxA0GKpgkqRQYrqlr4Fs8vgiY G37CcjZn8QRfssKSUEpsxjVXoK353B3a9B/HNMNdoO4PQfZdvGkMCuSeDeClg/eOpDMZ s05GTDQb90SNw8OfRfIHGiEnNYEM517rq+aH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=hW1ir0Xw8q7qhkfLyZY0YF0NaxvCN+xbnY4dNQ4cmOhD8Zg762tonBQfk+zAgPdsHw VKXNzl6biCjro+OKEa7pv6lkqTy+YpOz9G0p+eIm6/FGfbuelAr1dlt2bac9Q7bHn6qk EMhaXpyi8aBb2MpSvDGpiToEvdMcHS5yhTL10= MIME-Version: 1.0 Received: by 10.231.30.130 with SMTP id u2mr416206ibc.38.1241203196174; Fri, 01 May 2009 11:39:56 -0700 (PDT) In-Reply-To: <200905011646.n41GkuPG076836@repoman.freebsd.org> References: <200905011646.n41GkuPG076836@repoman.freebsd.org> From: Sylvestre Gallon Date: Fri, 1 May 2009 18:39:36 +0000 Message-ID: <164b4c9c0905011139v3fec7129n7ee15031fb285ddd@mail.gmail.com> To: Perforce Change Reviews Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: PERFORCE change 161438 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2009 18:39:59 -0000 On Fri, May 1, 2009 at 4:46 PM, Sylvestre Gallon wrote: > http://perforce.freebsd.org/chv.cgi?CH=161438 > > Change 161438 by syl@syl_atuin on 2009/05/01 16:46:05 > > Fix a little bug. > > Affected files ... > > .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_desc.c#7 edit > > Differences ... > > ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_desc.c#7 (text+ko) ==== > > @@ -106,7 +106,7 @@ > nalt = nif = pconf->num_interface; > nend = 0; > for (i = 0 ; i < nif ; i++) { > - if (pconf->interface[i].num_altsetting > 1) > + if (pconf->interface[i].num_altsetting > 0) > { > nalt += pconf->interface[i].num_altsetting; > for (j = 0 ; j < nalt ; j++) { > More details about this submit : nalt corresponds to the number of alternative interfaces. We need to enter in this IF only if an alternative interface or more exist. Cheers, -- Sylvestre Gallon (http://devsyl.blogspot.com) Fifth Grade Student @ Epitech & Researcher @ LSE R&D @ Rathaxes (http://www.rathaxes.org)