smc: fix smc_init() definition

clang 17 now enforces strict prototyping. add void to the parameters
to fix building with clang going forward.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
This commit is contained in:
James Calligeros 2023-10-08 17:06:32 +10:00 committed by Hector Martin
parent 50ac69eaa5
commit c3820a5016

View file

@ -120,7 +120,7 @@ void smc_shutdown(smc_dev_t *smc)
free(smc); free(smc);
} }
smc_dev_t *smc_init() smc_dev_t *smc_init(void)
{ {
smc_dev_t *smc = calloc(1, sizeof(smc_dev_t)); smc_dev_t *smc = calloc(1, sizeof(smc_dev_t));
if (!smc) if (!smc)