aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_encode_callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_encode_callbacks.c')
-rw-r--r--tests/test_encode_callbacks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_encode_callbacks.c b/tests/test_encode_callbacks.c
index f0a046de..7fa017f9 100644
--- a/tests/test_encode_callbacks.c
+++ b/tests/test_encode_callbacks.c
@@ -29,7 +29,7 @@ bool encode_fixed32(pb_ostream_t *stream, const pb_field_t *field, const void *a
return false;
uint32_t value = 42;
- return pb_enc_fixed32(stream, field, &value);
+ return pb_encode_fixed32(stream, &value);
}
bool encode_fixed64(pb_ostream_t *stream, const pb_field_t *field, const void *arg)
@@ -38,7 +38,7 @@ bool encode_fixed64(pb_ostream_t *stream, const pb_field_t *field, const void *a
return false;
uint64_t value = 42;
- return pb_enc_fixed64(stream, field, &value);
+ return pb_encode_fixed64(stream, &value);
}
int main()