From 5b389efcfeff17b0f7466597706c898ad65eb6a9 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sun, 9 Dec 2012 13:15:24 -0600 Subject: [PATCH] serial-dmm: Avoid duplicate symbol error Declare dmm_info dmms as extern in protocol.h to prevent duplicate symbol error from the linker. Signed-off-by: Alexandru Gagniuc --- hardware/serial-dmm/protocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/serial-dmm/protocol.h b/hardware/serial-dmm/protocol.h index b3d9e1aa..09962bb3 100644 --- a/hardware/serial-dmm/protocol.h +++ b/hardware/serial-dmm/protocol.h @@ -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