From: Joel Holdsworth Date: Mon, 7 May 2012 12:57:43 +0000 (+0100) Subject: sr: Made hwcap const X-Git-Tag: sigrok-cli-0.4.0~109 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3a06774cf7656481bedcde58e821c68a13a5005d;p=sigrok-cli.git sr: Made hwcap const --- diff --git a/sigrok-cli.c b/sigrok-cli.c index a9f1528..f13e092 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -204,11 +204,12 @@ static void show_dev_list(void) static void show_dev_detail(void) { struct sr_dev *dev; - struct sr_hwcap_option *hwo; + const struct sr_hwcap_option *hwo; const struct sr_samplerates *samplerates; struct sr_rational *rationals; uint64_t *integers; - int cap, *hwcaps, i; + const int *hwcaps; + int cap, i; char *s, *title; const char *charopts, **stropts;