]> sigrok.org Git - libsigrok.git/blobdiff - src/backend.c
Various minor cosmetics and consistency fixes.
[libsigrok.git] / src / backend.c
index b05e8d97a5bf7e817a33fbf741be642127d3b7c7..613de246a0298ae76e4e829aa01d8a3b9aab8e8d 100644 (file)
  *
  * Initializing and shutting down libsigrok.
  *
- * Before using any of the libsigrok functionality (except
- * sr_log_loglevel_set() and sr_log_opts_set()), sr_init() must
- * be called to initialize the library, which will return a struct sr_context
- * when the initialization was successful.
+ * Before using any of the libsigrok functionality (except for
+ * sr_log_loglevel_set()), sr_init() must be called to initialize the
+ * library, which will return a struct sr_context when the initialization
+ * was successful.
  *
  * When libsigrok functionality is no longer needed, sr_exit() should be
  * called, which will (among other things) free the struct sr_context.
@@ -432,7 +432,9 @@ SR_API int sr_init(struct sr_context **ctx)
        context = NULL;
        ret = SR_OK;
 
+#ifdef HAVE_LIBUSB_1_0
 done:
+#endif
        g_free(context);
        return ret;
 }