Tweaked output callbacks to match 'puts' signature
This commit is contained in:
@@ -5,9 +5,10 @@
|
||||
|
||||
int counter = 0;
|
||||
|
||||
void counterCallback(const char* msg) {
|
||||
int counterCallback(const char* msg) {
|
||||
(void)msg;
|
||||
counter++;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int test_callbacks(void) {
|
||||
|
||||
@@ -161,12 +161,13 @@ int test_opcode_not_equal(Toy_Bucket** bucketHandle) {
|
||||
}
|
||||
|
||||
static char* callbackUtilReceived = NULL;
|
||||
static void callbackUtil(const char* msg) {
|
||||
static int callbackUtil(const char* msg) {
|
||||
if (msg != NULL) {
|
||||
free(callbackUtilReceived);
|
||||
callbackUtilReceived = (char*)malloc(strlen(msg) + 1);
|
||||
strcpy(callbackUtilReceived, msg);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int test_keyword_assert(Toy_Bucket** bucketHandle) {
|
||||
|
||||
Reference in New Issue
Block a user