From: Uwe Hermann Date: Sun, 17 Apr 2016 12:24:05 +0000 (+0200) Subject: gmc-mh-1x-2x: Make two functions static. X-Git-Tag: libsigrok-0.5.0~520 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bc48ec37558b6b6e0a4128b93cb2181cd53b6da0;p=libsigrok.git gmc-mh-1x-2x: Make two functions static. --- diff --git a/src/hardware/gmc-mh-1x-2x/protocol.c b/src/hardware/gmc-mh-1x-2x/protocol.c index 7851f0ec..c5554cb9 100644 --- a/src/hardware/gmc-mh-1x-2x/protocol.c +++ b/src/hardware/gmc-mh-1x-2x/protocol.c @@ -873,7 +873,7 @@ static void process_msg_inf_13(struct sr_dev_inst *sdi) * @param buf Pointer to array of 14 data bytes. * @param[in] raw Write only data bytes, no interpretation. */ -void dump_msg14(guchar *buf, gboolean raw) +static void dump_msg14(guchar *buf, gboolean raw) { if (!buf) return; @@ -1261,7 +1261,7 @@ SR_PRIV int gmc_mh_2x_receive_data(int fd, int revents, void *cb_data) * @param[in] params Further parameters (9 bytes) * @param[out] buf Buffer to create msg in (42 bytes). */ -void create_cmd_14(guchar addr, guchar func, guchar *params, guchar *buf) +static void create_cmd_14(guchar addr, guchar func, guchar *params, guchar *buf) { uint8_t dta[GMC_REPLY_SIZE]; /* Unencoded message */ int cnt; diff --git a/src/hardware/gmc-mh-1x-2x/protocol.h b/src/hardware/gmc-mh-1x-2x/protocol.h index b4869ad1..7e75fc4b 100644 --- a/src/hardware/gmc-mh-1x-2x/protocol.h +++ b/src/hardware/gmc-mh-1x-2x/protocol.h @@ -123,8 +123,6 @@ struct dev_context { /* Forward declarations */ SR_PRIV int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg); -SR_PRIV void create_cmd_14(guchar addr, guchar func, guchar *params, guchar *buf); -SR_PRIV void dump_msg14(guchar *buf, gboolean raw); SR_PRIV int gmc_decode_model_bd(uint8_t mcode); SR_PRIV int gmc_decode_model_sm(uint8_t mcode); SR_PRIV int gmc_mh_1x_2x_receive_data(int fd, int revents, void *cb_data);