X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=datastore.c;h=36bde28105e24d1ec5d4b3cd570ac23934b6c329;hb=7e41e319d9a76da527eaa6e2708e4909ffd0d971;hp=96d830b41294199b7bcbc5aac31fb0c3db9ffcb3;hpb=0abee5076fd7751bd77d0fee940d617a1a40ea34;p=libsigrok.git diff --git a/datastore.c b/datastore.c index 96d830b4..36bde281 100644 --- a/datastore.c +++ b/datastore.c @@ -128,16 +128,12 @@ SR_API int sr_datastore_destroy(struct sr_datastore *ds) * is returned, the value/state of 'ds' is undefined. */ SR_API int sr_datastore_put(struct sr_datastore *ds, void *data, - unsigned int length, int in_unitsize, int *probelist) + unsigned int length, int in_unitsize, const int *probelist) { unsigned int stored; int capacity, size, num_chunks, chunk_bytes_free, chunk_offset; gpointer chunk; - /* Avoid compiler warnings. */ - (void)in_unitsize; - (void)probelist; - if (!ds) { sr_err("ds: %s: ds was NULL", __func__); return SR_ERR_ARG;