]> sigrok.org Git - libsigrok.git/blobdiff - hardware/demo/demo.c
sr: Made hwcap const
[libsigrok.git] / hardware / demo / demo.c
index 51644fc418794efd7a9ae38f361ed4a3386ff971..ca572af8a009e6892e2a6b62446997722d86b02e 100644 (file)
@@ -76,7 +76,7 @@ struct context {
        GTimer *timer;
 };
 
-static int hwcaps[] = {
+static const int hwcaps[] = {
        SR_HWCAP_LOGIC_ANALYZER,
        SR_HWCAP_DEMO_DEV,
        SR_HWCAP_SAMPLERATE,
@@ -226,7 +226,7 @@ static int hw_dev_status_get(int dev_index)
        return SR_ST_ACTIVE;
 }
 
-static int *hw_hwcap_get_all(void)
+static const int *hw_hwcap_get_all(void)
 {
        return hwcaps;
 }