]> sigrok.org Git - sigrok-cli.git/blobdiff - show.c
Pass unitsize to srd_session_send() directly.
[sigrok-cli.git] / show.c
diff --git a/show.c b/show.c
index f0dbbf4ab89421d240e1c209cb9b4f77b144375d..aec61f142d7aff4a90a38e32a4b80ad56fb45f2d 100644 (file)
--- a/show.c
+++ b/show.c
@@ -17,9 +17,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "sigrok-cli.h"
 #include <glib.h>
 #include <string.h>
+#include "sigrok-cli.h"
 
 static gint sort_inputs(gconstpointer a, gconstpointer b)
 {
@@ -78,7 +78,7 @@ void show_version(void)
 #endif
 
        printf("Supported hardware drivers:\n");
-       drivers = sr_driver_list();
+       drivers = sr_driver_list(sr_ctx);
        for (sl = NULL, i = 0; drivers[i]; i++)
                sl = g_slist_append(sl, drivers[i]);
        sl = g_slist_sort(sl, sort_drivers);