diff options
author | Pete Batard <pete@akeo.ie> | 2012-04-10 11:58:53 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2012-04-10 12:46:10 +0100 |
commit | 37dfd16c8c2f36c81c86de303072def0dc405e32 (patch) | |
tree | 4a277ac5a82e5cf8090eeece3070b2501d696615 /examples | |
parent | 5b82831df2aca7508c131b7fa7964770b689a67b (diff) | |
download | libusb-37dfd16c8c2f36c81c86de303072def0dc405e32.tar.gz |
Core: Add get_version() call
* Also some formatting/typo improvements
Diffstat (limited to 'examples')
-rw-r--r-- | examples/xusb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index b1d338f..aa46b8e 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -758,9 +758,7 @@ int main(int argc, char** argv) { bool show_help = false; bool debug_mode = false; -#ifdef HAS_GETVERSION const struct libusb_version* version; -#endif int j, r; size_t i, arglen; unsigned tmp_vid, tmp_pid; @@ -859,10 +857,8 @@ int main(int argc, char** argv) return 0; } -#ifdef HAS_GETVERSION - version = libusb_getversion(); */ + version = libusb_get_version(); printf("Using libusbx v%d.%d.%d.%d\n\n", version->major, version->minor, version->micro, version->nano); -#endif r = libusb_init(NULL); if (r < 0) return r; |