Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Change the callback function to use void**.
[apps/agl-service-can-low-level.git]
/
tests
/
decode_unittests.c
diff --git
a/tests/decode_unittests.c
b/tests/decode_unittests.c
index
6ba6d4f
..
1e74c34
100644
(file)
--- a/
tests/decode_unittests.c
+++ b/
tests/decode_unittests.c
@@
-1,3
+1,5
@@
+#define NANOPB_INTERNALS
+
#include <stdio.h>
#include <string.h>
#include "pb_decode.h"
#include <stdio.h>
#include <string.h>
#include "pb_decode.h"
@@
-17,11
+19,11
@@
bool stream_callback(pb_istream_t *stream, uint8_t *buf, size_t count)
}
/* Verifies that the stream passed to callback matches the byte array pointed to by arg. */
}
/* Verifies that the stream passed to callback matches the byte array pointed to by arg. */
-bool callback_check(pb_istream_t *stream, const pb_field_t *field, void *arg)
+bool callback_check(pb_istream_t *stream, const pb_field_t *field, void *
*
arg)
{
int i;
uint8_t byte;
{
int i;
uint8_t byte;
- pb_bytes_array_t *ref = (pb_bytes_array_t*) arg;
+ pb_bytes_array_t *ref = (pb_bytes_array_t*)
*
arg;
for (i = 0; i < ref->size; i++)
{
for (i = 0; i < ref->size; i++)
{