more deconstifying sr_dev_inst for dev_acquisition_stop()
This commit is contained in:
parent
7a36037546
commit
642e9d623c
|
@ -89,7 +89,7 @@ static void receive_line(const struct sr_dev_inst *sdi)
|
||||||
|
|
||||||
SR_PRIV int agdmm_receive_data(int fd, int revents, void *cb_data)
|
SR_PRIV int agdmm_receive_data(int fd, int revents, void *cb_data)
|
||||||
{
|
{
|
||||||
const struct sr_dev_inst *sdi;
|
struct sr_dev_inst *sdi;
|
||||||
struct dev_context *devc;
|
struct dev_context *devc;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
|
|
|
@ -307,7 +307,7 @@ static void handle_line(const struct sr_dev_inst *sdi)
|
||||||
|
|
||||||
SR_PRIV int fluke_receive_data(int fd, int revents, void *cb_data)
|
SR_PRIV int fluke_receive_data(int fd, int revents, void *cb_data)
|
||||||
{
|
{
|
||||||
const struct sr_dev_inst *sdi;
|
struct sr_dev_inst *sdi;
|
||||||
struct dev_context *devc;
|
struct dev_context *devc;
|
||||||
int len;
|
int len;
|
||||||
int64_t now, elapsed;
|
int64_t now, elapsed;
|
||||||
|
|
|
@ -391,7 +391,7 @@ static void handle_new_data(rs_dev_ctx *devc, int fd)
|
||||||
|
|
||||||
SR_PRIV int radioshack_receive_data(int fd, int revents, void *cb_data)
|
SR_PRIV int radioshack_receive_data(int fd, int revents, void *cb_data)
|
||||||
{
|
{
|
||||||
const struct sr_dev_inst *sdi;
|
struct sr_dev_inst *sdi;
|
||||||
struct dev_context *devc;
|
struct dev_context *devc;
|
||||||
|
|
||||||
if (!(sdi = cb_data))
|
if (!(sdi = cb_data))
|
||||||
|
|
|
@ -104,7 +104,7 @@ static void handle_new_data(struct dev_context *devc, int fd)
|
||||||
|
|
||||||
SR_PRIV int tekpower_dmm_receive_data(int fd, int revents, void *cb_data)
|
SR_PRIV int tekpower_dmm_receive_data(int fd, int revents, void *cb_data)
|
||||||
{
|
{
|
||||||
const struct sr_dev_inst *sdi;
|
struct sr_dev_inst *sdi;
|
||||||
struct dev_context *devc;
|
struct dev_context *devc;
|
||||||
|
|
||||||
if (!(sdi = cb_data))
|
if (!(sdi = cb_data))
|
||||||
|
|
Loading…
Reference in New Issue