X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=hardware%2Fopenbench-logic-sniffer%2Fols.c;h=ef7e3ebd737ba456edfd7403cf8774ab69afcf37;hp=8862db242f8c1d610621986e66fcc087fb07a16b;hb=915f7cc87a8dce688ab99fc67005ef77e0d028a2;hpb=2715c0b86bafed70dc1d3737b59750570951f507 diff --git a/hardware/openbench-logic-sniffer/ols.c b/hardware/openbench-logic-sniffer/ols.c index 8862db24..ef7e3ebd 100644 --- a/hardware/openbench-logic-sniffer/ols.c +++ b/hardware/openbench-logic-sniffer/ols.c @@ -46,7 +46,7 @@ #define O_NONBLOCK FIONBIO #endif -static int hwcaps[] = { +static const int hwcaps[] = { SR_HWCAP_LOGIC_ANALYZER, SR_HWCAP_SAMPLERATE, SR_HWCAP_CAPTURE_RATIO, @@ -602,7 +602,7 @@ static int hw_dev_status_get(int dev_index) return sdi->status; } -static int *hw_hwcap_get_all(void) +static const int *hw_hwcap_get_all(void) { return hwcaps; }