From 15948a377201503365dd9c259c9ea8d8db11d8a4 Mon Sep 17 00:00:00 2001 From: Alex Shelkovnykov Date: Thu, 25 May 2023 13:38:50 +0000 Subject: [PATCH] pma: fix old style function definition warnings --- rust/ares/src/pma/malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/ares/src/pma/malloc.c b/rust/ares/src/pma/malloc.c index 135d309..c50ccd7 100644 --- a/rust/ares/src/pma/malloc.c +++ b/rust/ares/src/pma/malloc.c @@ -436,7 +436,7 @@ struct PMAState { PMAState *_pma_state = NULL; void -pma_state_free() +pma_state_free(void) { if (_pma_state->metadata) free(_pma_state->metadata); free(_pma_state); @@ -444,7 +444,7 @@ pma_state_free() } int -pma_state_malloc() +pma_state_malloc(void) { if (_pma_state != NULL) return 1; PMAState *ret = calloc(1, sizeof *ret);