]> sigrok.org Git - sigrok-gtk.git/blobdiff - toolbar.c
configure.ac: Fix CFLAGS settings.
[sigrok-gtk.git] / toolbar.c
index ba07dc72cd5e29856dbb1d585c9edab5df2a6aef..b8f9542dcc2997f68176ae7fb979f747ca64dc0a 100644 (file)
--- a/toolbar.c
+++ b/toolbar.c
@@ -19,7 +19,7 @@
 
 #include <stdlib.h>
 
-#include <sigrok.h>
+#include <libsigrok/libsigrok.h>
 
 #include <gtk/gtk.h>
 
@@ -137,11 +137,11 @@ static void dev_set_options(GtkAction *action, GtkWindow *parent)
                                        G_TYPE_BOOLEAN, G_TYPE_STRING,
                                        G_TYPE_BOOLEAN);
        gtk_tree_view_set_model(GTK_TREE_VIEW(tv), GTK_TREE_MODEL(props));
-       int *hwcaps = dev->driver->hwcap_get_all();
+       const int *hwcaps = dev->driver->hwcap_get_all();
        int cap;
        GtkTreeIter iter;
        for (cap = 0; hwcaps[cap]; cap++) {
-               struct sr_hwcap_option *hwo;
+               const struct sr_hwcap_option *hwo;
                if (!(hwo = sr_hw_hwcap_get(hwcaps[cap])))
                        continue;
                gtk_list_store_append(props, &iter);