[coldsync commit] r2596 - trunk/src

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 14, 2008, 5:07:04 AM10/14/08
to coldsync...@googlegroups.com
Author: azummo...@towertech.it
Date: Tue Oct 14 02:06:20 2008
New Revision: 2596

Modified:
trunk/src/config.c

Log:
Use libusb as a default if available


Modified: trunk/src/config.c
==============================================================================
--- trunk/src/config.c (original)
+++ trunk/src/config.c Tue Oct 14 02:06:20 2008
@@ -585,6 +585,19 @@
* config files. Create a new, default listen block.
*/

+#ifdef WITH_LIBUSB
+ MISC_TRACE(4)
+ fprintf(stderr, "No device specified on the "
+ "command line or in config file.\n"
+ "Using libusb\n");
+
+ if (prepend_listen_block("libusb", LISTEN_LIBUSB, global_opts.protocol)
< 0)
+ {
+ free_sync_config(sync_config);
+ sync_config = NULL;
+ return -1;
+ }
+#else
MISC_TRACE(4)
fprintf(stderr, "No device specified on the "
"command line or in config file.\n"
@@ -597,6 +610,7 @@
sync_config = NULL;
return -1;
}
+#endif
}

SYNC_TRACE(4)

Reply all
Reply to author
Forward
0 new messages