Commit Diff


commit - c0180200175f649dcb6bd4214a7d55a89bccab8c
commit + aecca17ce0a487ea94b7e3f0c8e5387c1fce31e7
blob - f4b6d0109fd068224e8b644137e6656c0c613d19
blob + 186f54ae4a4834635ab06530b67e187941817d95
--- player.c
+++ player.c
@@ -51,13 +51,6 @@ void
 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));