summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-07 00:05:11 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-07 00:05:11 -0500
commitbc15d0970d8fe8441202bb38514b6216e6639685 (patch)
tree03b6dbce4c4399d49e18da50204007ca5e9bf74f /tests
parente1cc30c83276f4eb52e84777693445443734a878 (diff)
Fix warnings, now that they're enabled!
Diffstat (limited to 'tests')
-rw-r--r--tests/common.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/common.c b/tests/common.c
index 99b2f7c4..f79b8ad6 100644
--- a/tests/common.c
+++ b/tests/common.c
@@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <string.h>
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;