Re: Fwd: Patch to pcidevs for a SSD drive ADATA product.

2020-01-08 Thread Dariusz Sendkowski
Do you want me to send a new patch with all the corrections included or it is not necessary any more? śr., 8 sty 2020 o 04:35 Todd C. Miller napisał(a): > > On Wed, 08 Jan 2020 14:29:11 +1100, Jonathan Gray wrote: > > > The non-pro product supposedly is 126f:2262 going by > > https://bugzilla.ke

Fwd: Patch to pcidevs for a SSD drive ADATA product.

2020-01-07 Thread Dariusz Sendkowski
Hi, I've bought a new SSD drive by ADATA recently and its vendor and product IDs are missing in pcidevs. Here is a patch to add it to the pcidevs. Vendor and product info is taken from: https://devicehunt.com/view/type/pci/vendor/1CC1/device/8201 Index: pcidevs ===

Re: qsort comparision function bug

2019-01-21 Thread Dariusz Sendkowski
Wouldn't it lead to undefined behavior? According to the standard: "... The value of the result of an integer arithmetic or conversion function cannot be represented (7.8.2.1, 7.8.2.2, 7.8.2.3, 7.8.2.4, 7.22.6.1, 7.22.6.2, 7.22.1) ..." This dump case is not compiled with -fwrapv flag, so I guess it