#include <glib/gstdio.h>
#include <check.h>
#include "../libsigrok.h"
+#include "lib.h"
/* Get a libsigrok driver by name. */
struct sr_dev_driver *srtest_driver_get(const char *drivername)
void srtest_buf_to_file(const char *filename, const uint8_t *buf, uint64_t len)
{
FILE *f;
- GError *error;
+ GError *error = NULL;
gboolean ret;
f = g_fopen(filename, "wb");
GArray *srtest_get_enabled_logic_probes(const struct sr_dev_inst *sdi)
{
- struct sr_probe *probe;
+ struct sr_channel *ch;
GArray *probes;
GSList *l;