]> sigrok.org Git - libsigrok.git/blobdiff - src/sw_limits.c
kingst-la2016: fix segfault that often occurs when a capture is aborted
[libsigrok.git] / src / sw_limits.c
index 9d80c06bf1b3dcd8bc451ccb548a8e5b53df4684..55ca79dafbb58ef53235e67254fd4670c9cd03f8 100644 (file)
@@ -57,7 +57,7 @@ SR_PRIV void sr_sw_limits_init(struct sr_sw_limits *limits)
  * @param data config item data
  * @return SR_ERR_NA if @p key is not a supported limit, SR_OK otherwise
  */
-SR_PRIV int sr_sw_limits_config_get(struct sr_sw_limits *limits, uint32_t key,
+SR_PRIV int sr_sw_limits_config_get(const struct sr_sw_limits *limits, uint32_t key,
        GVariant **data)
 {
        switch (key) {