Skip to content

Commit

Permalink
use const on binn_iter_init
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen committed Feb 1, 2024
1 parent cc8ccfb commit 2fe99d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/binn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,7 @@ void * APIENTRY binn_object_read_pair(const void *ptr, int pos, char *pkey, int
/*** SEQUENTIAL READ FUNCTIONS *********************************************/
/***************************************************************************/

BOOL APIENTRY binn_iter_init(binn_iter *iter, void *ptr, int expected_type) {
BOOL APIENTRY binn_iter_init(binn_iter *iter, const void *ptr, int expected_type) {
int type, count, size=0, header_size;

ptr = binn_ptr(ptr);
Expand Down
2 changes: 1 addition & 1 deletion src/binn.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ typedef struct binn_iter_struct {
int current;
} binn_iter;

BOOL APIENTRY binn_iter_init(binn_iter *iter, void *pbuf, int type);
BOOL APIENTRY binn_iter_init(binn_iter *iter, const void *pbuf, int type);

// allocated
binn * APIENTRY binn_list_next_value(binn_iter *iter);
Expand Down

0 comments on commit 2fe99d1

Please sign in to comment.