]> sigrok.org Git - libsigrok.git/commitdiff
more deconstifying sr_dev_inst for dev_acquisition_stop()
authorBert Vermeulen <redacted>
Tue, 6 Nov 2012 18:32:53 +0000 (19:32 +0100)
committerBert Vermeulen <redacted>
Tue, 6 Nov 2012 18:32:53 +0000 (19:32 +0100)
hardware/agilent-dmm/sched.c
hardware/fluke-dmm/fluke.c
hardware/radioshack-dmm/radioshack.c
hardware/tekpower-dmm/protocol.c

index 140c53403f938c7a88a6ed6548baefc7bb36a45a..5ae73aca1824796871cd92999bf15b530113fc9d 100644 (file)
@@ -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)
 {
-       const struct sr_dev_inst *sdi;
+       struct sr_dev_inst *sdi;
        struct dev_context *devc;
        int len;
 
index f8544e99c29d83645c724515b3e765e9dcc2106f..dadcc495a06562f51f0843689665079b1b57ca5b 100644 (file)
@@ -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)
 {
-       const struct sr_dev_inst *sdi;
+       struct sr_dev_inst *sdi;
        struct dev_context *devc;
        int len;
        int64_t now, elapsed;
index 64ef59bee351daf07f9ae9de39b3a47aacf5b1b1..6746030824780bac06196988751159b26ffaf2dc 100644 (file)
@@ -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)
 {
-       const struct sr_dev_inst *sdi;
+       struct sr_dev_inst *sdi;
        struct dev_context *devc;
 
        if (!(sdi = cb_data))
index 87f83c15b5fb39606117c0010012d9320ad4272d..2d495f1a70ad6a15d7b8fe5f000dd50a7a1e9235 100644 (file)
@@ -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)
 {
-       const struct sr_dev_inst *sdi;
+       struct sr_dev_inst *sdi;
        struct dev_context *devc;
 
        if (!(sdi = cb_data))