]> sigrok.org Git - libsigrok.git/commitdiff
serial-dmm: Avoid duplicate symbol error
authorAlexandru Gagniuc <redacted>
Sun, 9 Dec 2012 19:15:24 +0000 (13:15 -0600)
committerUwe Hermann <redacted>
Thu, 13 Dec 2012 00:00:06 +0000 (01:00 +0100)
Declare dmm_info dmms as extern in protocol.h to prevent duplicate
symbol error from the linker.

Signed-off-by: Alexandru Gagniuc <redacted>
hardware/serial-dmm/protocol.h

index b3d9e1aa4fac0f7a65ed735582a26edb7e88266a..09962bb3480c3e88924c8d0413fb69ceae5c1174 100644 (file)
@@ -59,7 +59,7 @@ struct dmm_info {
        void (*dmm_details)(struct sr_datafeed_analog *, void *);
 };
 
-SR_PRIV struct dmm_info dmms[DMM_COUNT];
+extern SR_PRIV struct dmm_info dmms[DMM_COUNT];
 
 #define DMM_BUFSIZE 256