pma: fix old style function definition warnings

This commit is contained in:
Alex Shelkovnykov 2023-05-25 13:38:50 +00:00
parent 7c9e1fc393
commit 15948a3772

View File

@ -436,7 +436,7 @@ struct PMAState {
PMAState *_pma_state = NULL; PMAState *_pma_state = NULL;
void void
pma_state_free() pma_state_free(void)
{ {
if (_pma_state->metadata) free(_pma_state->metadata); if (_pma_state->metadata) free(_pma_state->metadata);
free(_pma_state); free(_pma_state);
@ -444,7 +444,7 @@ pma_state_free()
} }
int int
pma_state_malloc() pma_state_malloc(void)
{ {
if (_pma_state != NULL) return 1; if (_pma_state != NULL) return 1;
PMAState *ret = calloc(1, sizeof *ret); PMAState *ret = calloc(1, sizeof *ret);