<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libusb.git/examples/xusb.c, branch test</title>
<subtitle>github.com: libusb/libusb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/'/>
<entry>
<title>Fixed various trivial cppcheck 1.80 warnings</title>
<updated>2017-12-29T06:40:30+00:00</updated>
<author>
<name>Sean McBride</name>
<email>sean@rogue-research.com</email>
</author>
<published>2017-12-28T04:53:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=0b3d4c68d87a4ffda2a4e0ff86983f69599048ce'/>
<id>0b3d4c68d87a4ffda2a4e0ff86983f69599048ce</id>
<content type='text'>
Specifically:

redundantAssignment,examples/dpfp.c:422,style,Variable 'r' is reassigned a value before the old one has been used.
redundantAssignment,libusb/os/threads_posix.c:64,style,Variable 'ret' is reassigned a value before the old one has been used.
unreadVariable,libusb/os/netbsd_usb.c:217,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/netbsd_usb.c:235,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/openbsd_usb.c:251,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/openbsd_usb.c:275,style,Variable 'hpriv' is assigned a value that is never used.
unsignedLessThanZero,libusb/os/windows_winusb.c:259,style,Checking if unsigned variable '_index' is less than zero.
unsignedLessThanZero,libusb/os/windows_winusb.c:298,style,Checking if unsigned variable '_index' is less than zero.
unsignedLessThanZero,libusb/os/windows_winusb.c:367,style,Checking if unsigned variable '_index' is less than zero.
invalidPrintfArgType_sint,examples/xusb.c:534,warning,%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Specifically:

redundantAssignment,examples/dpfp.c:422,style,Variable 'r' is reassigned a value before the old one has been used.
redundantAssignment,libusb/os/threads_posix.c:64,style,Variable 'ret' is reassigned a value before the old one has been used.
unreadVariable,libusb/os/netbsd_usb.c:217,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/netbsd_usb.c:235,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/openbsd_usb.c:251,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/openbsd_usb.c:275,style,Variable 'hpriv' is assigned a value that is never used.
unsignedLessThanZero,libusb/os/windows_winusb.c:259,style,Checking if unsigned variable '_index' is less than zero.
unsignedLessThanZero,libusb/os/windows_winusb.c:298,style,Checking if unsigned variable '_index' is less than zero.
unsignedLessThanZero,libusb/os/windows_winusb.c:367,style,Checking if unsigned variable '_index' is less than zero.
invalidPrintfArgType_sint,examples/xusb.c:534,warning,%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: xusb: replaced insecure sprintf with snprintf</title>
<updated>2017-12-29T06:40:30+00:00</updated>
<author>
<name>Sean McBride</name>
<email>sean@rogue-research.com</email>
</author>
<published>2017-12-28T03:34:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=f66c63e9f0ca621e1ee17ed5f5855f1b29f031dc'/>
<id>f66c63e9f0ca621e1ee17ed5f5855f1b29f031dc</id>
<content type='text'>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Examples: Misc. cleanup to xusb</title>
<updated>2017-12-27T00:37:34+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2017-12-27T00:37:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=0fece895911febddffac66cb246edd82dcce0bfe'/>
<id>0fece895911febddffac66cb246edd82dcce0bfe</id>
<content type='text'>
Make data that is unchanged const, remove an unused return value, and
add a missing newline to an error message.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make data that is unchanged const, remove an unused return value, and
add a missing newline to an error message.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Examples: Improvements to xusb's support for Microsoft OS descriptors</title>
<updated>2017-12-27T00:37:22+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2017-12-27T00:37:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=d8c1f7caa9f00496097037adc266bcdfbe866bda'/>
<id>d8c1f7caa9f00496097037adc266bcdfbe866bda</id>
<content type='text'>
As noted in issue #269, the current xusb implementation does not handle
Microsoft OS descriptors from devices whose vendor code is greater than
0x7F. This commit addresses this limitation by using
libusb_get_string_descriptor() instead of the ASCII variant and parsing
the descriptor separately. Note that this issue was addressed in PR #276,
but that approach was too cryptic to read.

Closes #269, Closes #276

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As noted in issue #269, the current xusb implementation does not handle
Microsoft OS descriptors from devices whose vendor code is greater than
0x7F. This commit addresses this limitation by using
libusb_get_string_descriptor() instead of the ASCII variant and parsing
the descriptor separately. Note that this issue was addressed in PR #276,
but that approach was too cryptic to read.

Closes #269, Closes #276

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Fix device handle leak in xusb</title>
<updated>2017-08-24T22:52:39+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2017-08-24T22:52:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=b4c9b4272d61cecffeddeb91abd31efe256a6224'/>
<id>b4c9b4272d61cecffeddeb91abd31efe256a6224</id>
<content type='text'>
The CALL_CHECK macro returns from the current function, so in the
test_device() function the device handle was being leaked when one of
the functions failed. This commit adds a new CALL_CHECK_CLOSE macro that
does the same as CALL_CHECK but also closes the device handle before
returning. In addition, the macros are changed to declare their needed
variable rather than relying on the variable to already exist within the
scope of the function.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The CALL_CHECK macro returns from the current function, so in the
test_device() function the device handle was being leaked when one of
the functions failed. This commit adds a new CALL_CHECK_CLOSE macro that
does the same as CALL_CHECK but also closes the device handle before
returning. In addition, the macros are changed to declare their needed
variable rather than relying on the variable to already exist within the
scope of the function.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>core: Introduce libusb_set_option() API function</title>
<updated>2017-07-16T21:02:05+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2017-07-11T05:37:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=539f22e2fd916558d11ab9a66f10f461c5593168'/>
<id>539f22e2fd916558d11ab9a66f10f461c5593168</id>
<content type='text'>
This new function allows more flexibility in extending the library to
support more user-configurable options. It is intended to provide a
single API that can support a wide variety of needs and eliminates the
need for new API functions to set future options.

The function is introduced with a single option (LIBUSB_OPTION_LOG_LEVEL)
that replaces the libusb_set_debug() function. Documentation relating to
libusb_set_debug() and the uses of this function in the examples and
tests have been updated accordingly.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This new function allows more flexibility in extending the library to
support more user-configurable options. It is intended to provide a
single API that can support a wide variety of needs and eliminates the
need for new API functions to set future options.

The function is introduced with a single option (LIBUSB_OPTION_LOG_LEVEL)
that replaces the libusb_set_debug() function. Documentation relating to
libusb_set_debug() and the uses of this function in the examples and
tests have been updated accordingly.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>xusb: fix typo</title>
<updated>2016-03-05T15:02:58+00:00</updated>
<author>
<name>Nathan Hjelm</name>
<email>hjelmn@me.com</email>
</author>
<published>2016-03-05T15:00:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=a499ef20a1e49050c93181d64ba84278aef8bb99'/>
<id>a499ef20a1e49050c93181d64ba84278aef8bb99</id>
<content type='text'>
Signed-off-by: Nathan Hjelm &lt;hjelmn@me.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Nathan Hjelm &lt;hjelmn@me.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace obsolete usleep with nanosleep</title>
<updated>2016-03-05T14:55:25+00:00</updated>
<author>
<name>Stefan Tauner</name>
<email>stefan.tauner@gmx.at</email>
</author>
<published>2016-01-18T23:02:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=1fd08a1513dc323ddf7fae97888eb09215a1f0b6'/>
<id>1fd08a1513dc323ddf7fae97888eb09215a1f0b6</id>
<content type='text'>
This fixes compiling libusb with uclibc.

Closes #141, #165

Signed-off-by: Stefan Tauner &lt;stefan.tauner@gmx.at&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes compiling libusb with uclibc.

Closes #141, #165

Signed-off-by: Stefan Tauner &lt;stefan.tauner@gmx.at&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Windows: Silence VS2013 code analysis warnings</title>
<updated>2014-11-13T22:03:30+00:00</updated>
<author>
<name>Pete Batard</name>
<email>pete@akeo.ie</email>
</author>
<published>2014-11-13T22:03:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=ada59db186aa95215158129db8cd42e079daff07'/>
<id>ada59db186aa95215158129db8cd42e079daff07</id>
<content type='text'>
* Also update Windows version report for Windows 10
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Also update Windows version report for Windows 10
</pre>
</div>
</content>
</entry>
<entry>
<title>samples: set xusb to also produce debug output during init when -d is specified</title>
<updated>2014-05-18T18:49:51+00:00</updated>
<author>
<name>Pete Batard</name>
<email>pete@akeo.ie</email>
</author>
<published>2014-05-18T18:49:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=c0f5e58acb316010015e28104c425cda7e8e1c78'/>
<id>c0f5e58acb316010015e28104c425cda7e8e1c78</id>
<content type='text'>
* This can be quite useful for troubleshooting user issues
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* This can be quite useful for troubleshooting user issues
</pre>
</div>
</content>
</entry>
</feed>
