mirror of
https://github.com/urbit/ares.git
synced 2024-11-30 07:25:44 +03:00
pma: fix old style function definition warnings
This commit is contained in:
parent
7c9e1fc393
commit
15948a3772
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user