X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=tests%2Finput_binary.c;h=307950b9819bc2adeeeac949919c6eff2fcecb6f;hb=dbde3b65133bca6a00d589b735be5f4ba0049194;hp=31ed69f327e4ce1391511b5c485ed8db068e04db;hpb=02a2bf688f25a50ea05276be75fba8b4f644fca6;p=libsigrok.git diff --git a/tests/input_binary.c b/tests/input_binary.c index 31ed69f3..307950b9 100644 --- a/tests/input_binary.c +++ b/tests/input_binary.c @@ -20,10 +20,10 @@ #include #include -#include "../include/libsigrok/libsigrok.h" +#include #include "lib.h" -#define BUFSIZE 1000000 +#define BUFSIZE (1000 * 1000) enum { CHECK_ALL_LOW, @@ -208,7 +208,7 @@ static void check_buf(GHashTable *options, const uint8_t *buf, int check, sdi = sr_input_dev_inst_get(in); - sr_session_new(&session); + sr_session_new(srtest_ctx, &session); sr_session_datafeed_callback_add(session, datafeed_in, NULL); sr_session_dev_add(session, sdi);