]> sigrok.org Git - sigrok-gtk.git/commitdiff
sr: Made hwcap const
authorJoel Holdsworth <redacted>
Mon, 7 May 2012 12:57:43 +0000 (13:57 +0100)
committerJoel Holdsworth <redacted>
Thu, 31 May 2012 18:51:09 +0000 (19:51 +0100)
toolbar.c

index ba07dc72cd5e29856dbb1d585c9edab5df2a6aef..e02d1b79727ab94c62359db129dddf885bde716d 100644 (file)
--- a/toolbar.c
+++ b/toolbar.c
@@ -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);