Closed ReVe1uv closed 2 months ago
the declarations have already been adapted in https://github.com/OpenIDC/cjose/pull/19/files ; your PR seems to modify the actual function calls as well, at least in util.c which is not portable, see e.g.: https://github.com/ReVe1uv/cjose/actions/runs/10804403268/job/29969808517
This commit addresses the following compilation errors:
cjose_get_alloc()
,cjose_get_alloc3()
,cjose_get_realloc()
,cjose_get_realloc3()
,cjose_get_dealloc()
, andcjose_get_dealloc3()
were declared without avoid
parameter.void
to indicate no parameters, as required by modern C standards.This change resolves the compilation errors when building with strict prototype checking (-Wstrict-prototypes).