aboutsummaryrefslogtreecommitdiffstats
path: root/pb.h
diff options
context:
space:
mode:
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pb.h b/pb.h
index 15c346d8..da38d7b9 100644
--- a/pb.h
+++ b/pb.h
@@ -298,7 +298,7 @@ struct _pb_extension_type_t {
* If you run into an error, return false.
* Set to NULL for default handler.
*/
- bool (*encode)(pb_ostream_t *stream, pb_extension_t *extension);
+ bool (*encode)(pb_ostream_t *stream, const pb_extension_t *extension);
/* Free field for use by the callback. */
const void *arg;