diff --git a/m-bitset.h b/m-bitset.h index 2e979471..eed81356 100644 --- a/m-bitset.h +++ b/m-bitset.h @@ -40,7 +40,7 @@ typedef struct bitset_s { bitset_limb *ptr; // Pointer to the allocated limbs } bitset_t[1]; typedef struct bitset_s *bitset_ptr; -typedef const struct bitset_s bitset_srcptr; +typedef const struct bitset_s *bitset_srcptr; typedef struct bitset_it_s { size_t index; // index to the array of bit diff --git a/m-string.h b/m-string.h index 8d4b9329..e961ae94 100644 --- a/m-string.h +++ b/m-string.h @@ -74,7 +74,7 @@ typedef struct string_s { char *ptr; } string_t[1]; typedef struct string_s *string_ptr; -typedef const struct string_s string_srcptr; +typedef const struct string_s *string_srcptr; /* Input option for the fgets function */ typedef enum string_fgets_s {