commit ae335651f8a91f929ca576e1e3e3e2a5ba780059 from: Omar Polo date: Fri Jul 08 20:55:06 2022 UTC declare local functions as static commit - dc12484b39eaa5dc5d853206cf08905ef29a93e8 commit + ae335651f8a91f929ca576e1e3e3e2a5ba780059 blob - 010475656324920fc1b72c00b83ce54e1fa499e6 blob + e660fc961b1df995c0228e4b06ca353fb295362f --- amused.c +++ amused.c @@ -55,7 +55,7 @@ enum amused_process { PROC_PLAYER, }; -__dead void +static __dead void main_shutdown(void) { pid_t pid; blob - 848f14a3c782c9627ef53a7817254da3b3cfaf9f blob + c247ad418c379ee4f8fdaec602d8d55fb40ea98f --- player.c +++ player.c @@ -49,7 +49,7 @@ static int64_t samples; volatile sig_atomic_t halted; -void +static void player_signal_handler(int signo) { halted = 1; @@ -125,7 +125,7 @@ player_setduration(int64_t duration) imsg_flush(ibuf); } -void +static void player_onmove(void *arg, int delta) { static int64_t reported; @@ -142,7 +142,7 @@ player_onmove(void *arg, int delta) } /* process only one message */ -int +static int player_dispatch(void) { struct pollfd pfd; @@ -190,7 +190,7 @@ again: return ret; } -void +static void player_senderr(const char *errstr) { size_t len = 0; @@ -202,14 +202,14 @@ player_senderr(const char *errstr) imsg_flush(ibuf); } -void +static void player_sendeof(void) { imsg_compose(ibuf, IMSG_EOF, 0, 0, -1, NULL, 0); imsg_flush(ibuf); } -int +static int player_playnext(const char **errstr) { static char buf[512]; @@ -253,7 +253,7 @@ err: return -1; } -int +static int player_pause(void) { int r; @@ -262,7 +262,7 @@ player_pause(void) return r == IMSG_RESUME; } -int +static int player_shouldstop(void) { switch (player_dispatch()) {