Commit Diff
Diff:
c0180200175f649dcb6bd4214a7d55a89bccab8c
aecca17ce0a487ea94b7e3f0c8e5387c1fce31e7
Commit:
aecca17ce0a487ea94b7e3f0c8e5387c1fce31e7
Tree:
316e16a5b5b934061be74080225059bce69e74c7
Author:
Omar Polo <op@omarpolo.com>
Date:
Fri Jun 10 07:30:11 2022 UTC
Message:
inline player_init
commit - c0180200175f649dcb6bd4214a7d55a89bccab8c
commit + aecca17ce0a487ea94b7e3f0c8e5387c1fce31e7
blob - f4b6d0109fd068224e8b644137e6656c0c613d19
blob + 186f54ae4a4834635ab06530b67e187941817d95
--- player.c
+++ player.c
@@ -51,13 +51,6 @@ player_signal_handler(int signo)
player_signal_handler(int signo)
{
halted = 1;
-}
-
-void
-player_init(void)
-{
- if ((hdl = sio_open(SIO_DEVANY, SIO_PLAY, 1)) == NULL)
- fatal("sio_open");
}
int
@@ -289,7 +282,8 @@ player(int debug, int verbose)
}
#endif
- player_init();
+ if ((hdl = sio_open(SIO_DEVANY, SIO_PLAY, 1)) == NULL)
+ fatal("sio_open");
/* allocate one extra for imsg */
player_pfds = calloc(sio_nfds(hdl) + 1, sizeof(*player_pfds));
Omar Polo