X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fsource.c;h=edf53eddaa1edad01736f18d2aa179a9481529e2;hb=a5bd4c3c89f5cb433a615c436947b8b0f44c3661;hp=34a7c9eeda711e7f8592d6331efb2c12e7d4f8c3;hpb=bdf47fdee469d5a1d7ddfd06a0e4b26f3b40b0f4;p=gedcom-parse.git diff --git a/gom/source.c b/gom/source.c index 34a7c9e..edf53ed 100644 --- a/gom/source.c +++ b/gom/source.c @@ -91,7 +91,7 @@ void source_add_description(Gom_ctxt ctxt, struct source_description* desc) LINK_CHAIN_ELT(source_description, sour->repository.description, desc); } -void source_add_to_value(NL_TYPE type, Gom_ctxt ctxt, char* str) +void source_add_to_value(NL_TYPE type, Gom_ctxt ctxt, const char* str) { struct source *sour = SAFE_CTXT_CAST(source, ctxt); if (sour) { @@ -152,7 +152,7 @@ void source_add_user_ref(Gom_ctxt ctxt, struct user_ref_number* ref) LINK_CHAIN_ELT(user_ref_number, sour->ref, ref); } -void source_set_record_id(Gom_ctxt ctxt, char *rin) +void source_set_record_id(Gom_ctxt ctxt, const char *rin) { struct source *sour = SAFE_CTXT_CAST(source, ctxt); if (sour) { @@ -209,7 +209,7 @@ struct source* gom_get_first_source() return gom_first_source; } -struct source* make_source_record(char* xrefstr) +struct source* make_source_record(const char* xrefstr) { struct source* src = NULL; MAKE_CHAIN_ELT(source, gom_first_source, src);