From: Peter Verthez Date: Sat, 25 Jan 2003 14:16:21 +0000 (+0000) Subject: Some const correctness. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=de22c4a7da9703ac654a271fcd0212023192d256;p=gedcom-parse.git Some const correctness. --- diff --git a/gedcom/compat.c b/gedcom/compat.c index 1d882dc..ffb127c 100644 --- a/gedcom/compat.c +++ b/gedcom/compat.c @@ -142,7 +142,7 @@ void set_compatibility_version(const char* version) result = sscanf(version, " %u.%u.%u", &major, &minor, &patch); if (result > 0) { - gedcom_debug_print(_("Setting compat version to %u.%u.%u"), + gedcom_debug_print("Setting compat version to %u.%u.%u", major, minor, patch); compatibility_version = major * 10000 + minor * 100 + patch; } @@ -438,7 +438,7 @@ int compat_check_subm_comm_cont(const char* tag) return 0; } -Gedcom_ctxt compat_subm_comm_cont_start(Gedcom_ctxt parent, const char* str) +Gedcom_ctxt compat_subm_comm_cont_start(Gedcom_ctxt parent, char* str) { Gedcom_ctxt self = NULL; struct tag_struct ts; diff --git a/gedcom/compat.h b/gedcom/compat.h index 7a1b097..a901197 100644 --- a/gedcom/compat.h +++ b/gedcom/compat.h @@ -67,7 +67,7 @@ int compat_check_subm_comm(const char* tag, const char* parent_tag, struct safe_buffer* b); void compat_close_subm_comm(); int compat_check_subm_comm_cont(const char* tag); -Gedcom_ctxt compat_subm_comm_cont_start(Gedcom_ctxt parent, const char* str); +Gedcom_ctxt compat_subm_comm_cont_start(Gedcom_ctxt parent, char* str); void compat_subm_comm_cont_end(Gedcom_ctxt parent, Gedcom_ctxt self); #endif /* __COMPAT_H */