Hi.
IMO in the struct ReplicationSlotPersistentData, the field*synced* has wrong type declaration.The intention was *bool* not *char* type.
Since it is only used in Boolean comparison.
trivial patch attached.
best regards,Ranier Vilela