]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/manson-hcs-3xxx/protocol.c
Build: Include <config.h> first in all source files
[libsigrok.git] / src / hardware / manson-hcs-3xxx / protocol.c
index cb333149c87444ad1d73d7fe40341af3d354b504..ad31d429b284f959ccc4b6c0b34520b0e4afa73c 100644 (file)
@@ -24,6 +24,7 @@
   *  @internal
   */
 
+#include <config.h>
 #include "protocol.h"
 
 #define REQ_TIMEOUT_MS 500
@@ -62,7 +63,7 @@ SR_PRIV int hcs_send_cmd(struct sr_serial_dev_inst *serial, const char *cmd, ...
  * @retval SR_ERR Error.
  * @retval SR_ERR_ARG Invalid argument.
  */
-SR_PRIV int hcs_read_reply(struct sr_serial_dev_inst *serial, int lines, charbuf, int buflen)
+SR_PRIV int hcs_read_reply(struct sr_serial_dev_inst *serial, int lines, char *buf, int buflen)
 {
        int l_recv = 0;
        int bufpos = 0;