X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=show.c;h=aec61f142d7aff4a90a38e32a4b80ad56fb45f2d;hp=f0dbbf4ab89421d240e1c209cb9b4f77b144375d;hb=ee639fb40fa43aa3553ef0229def9bcdb8338c2b;hpb=f0f54487c6a146af523d6eb19fcce63422e3f0f1 diff --git a/show.c b/show.c index f0dbbf4..aec61f1 100644 --- a/show.c +++ b/show.c @@ -17,9 +17,9 @@ * along with this program. If not, see . */ -#include "sigrok-cli.h" #include #include +#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);