From 37dfd16c8c2f36c81c86de303072def0dc405e32 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Tue, 10 Apr 2012 11:58:53 +0100 Subject: Core: Add get_version() call * Also some formatting/typo improvements --- examples/xusb.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'examples/xusb.c') 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; -- cgit v1.2.1