From bc15d0970d8fe8441202bb38514b6216e6639685 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Tue, 7 Jan 2014 00:05:11 -0500 Subject: [PATCH] Fix warnings, now that they're enabled! --- tests/common.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/common.c b/tests/common.c index 99b2f7c..f79b8ad 100644 --- a/tests/common.c +++ b/tests/common.c @@ -3,6 +3,7 @@ #include #include #include +#include DiagnosticShims SHIMS; @@ -22,7 +23,7 @@ void debug(const char* format, ...) { va_end(args); } -void mock_send_can(const uint16_t arbitration_id, const uint8_t* data, +bool mock_send_can(const uint16_t arbitration_id, const uint8_t* data, const uint8_t size) { can_frame_was_sent = true; last_can_frame_sent_arb_id = arbitration_id; @@ -30,13 +31,11 @@ void mock_send_can(const uint16_t arbitration_id, const uint8_t* data, if(size > 0) { memcpy(last_can_payload_sent, data, size); } -} - -void mock_set_timer(uint16_t time_ms, void (*callback)) { + return true; } void setup() { - SHIMS = diagnostic_init_shims(debug, mock_send_can, mock_set_timer); + SHIMS = diagnostic_init_shims(debug, mock_send_can, NULL); memset(last_can_payload_sent, 0, sizeof(last_can_payload_sent)); can_frame_was_sent = false; last_response_was_received = false; -- 2.16.6