X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fage.c;fp=gedcom%2Fage.c;h=9429ff870d141ccd1175c9f08aced79405d8eef6;hb=31fb8432ef01f9d5a08cc801a785a07b4e9d12bd;hp=37a49fe6a5678f790bae53f8f0b81c706c097d1f;hpb=f2e03cf5a721a279ee74cf8300d99c5f05ab356b;p=gedcom-parse.git diff --git a/gedcom/age.c b/gedcom/age.c index 37a49fe..9429ff8 100644 --- a/gedcom/age.c +++ b/gedcom/age.c @@ -103,7 +103,7 @@ int parse_numeric_age(struct age_value *age, const char *ptr) return 0; } -struct age_value* gedcom_new_age_value(struct age_value* copy_from) +struct age_value* gedcom_new_age_value(const struct age_value* copy_from) { struct age_value* age_ptr; age_ptr = (struct age_value*) malloc(sizeof(struct age_value)); @@ -154,7 +154,7 @@ struct age_value gedcom_parse_age(const char* line_value) return age_s; } -char* gedcom_age_to_string(struct age_value* val) +char* gedcom_age_to_string(const struct age_value* val) { int num = 0; reset_buffer(&age_buffer);