commit ee5ab27dda2f3da5cd6a38ec0d4d4c9e6a5b6c48 from: Omar Polo date: Thu Jun 09 09:35:58 2022 UTC s/audio_init/player_init was the only function to disrespect the player_* namespace (well, excepting play). while here also don't mark those two as static, they were the only static functions in the file. I'm not trying to enforcing private symbols here. commit - 7850bef5851db3b13284bfaae7cede92b8450aff commit + ee5ab27dda2f3da5cd6a38ec0d4d4c9e6a5b6c48 blob - df1c41932b85ce2bdbe8a9e55c9716d440bcc349 blob + fb6e391228e49fbb9e35cee7837c96d4d4dca0b6 --- player.c +++ player.c @@ -45,14 +45,14 @@ static int nextfd = -1; volatile sig_atomic_t halted; -static void +void player_signal_handler(int signo) { halted = 1; } -static void -audio_init(void) +void +player_init(void) { if ((hdl = sio_open(SIO_DEVANY, SIO_PLAY, 0)) == NULL) fatal("sio_open"); @@ -277,7 +277,7 @@ player(int debug, int verbose) } #endif - audio_init(); + player_init(); ibuf = xmalloc(sizeof(*ibuf)); imsg_init(ibuf, 3);