Fix compilation mistakes from 338ee4bd7bb44 in TiVo.

This commit is contained in:
Gleb Smirnoff
2018-01-12 21:41:51 -08:00
committed by Justin Maggard
parent da30df3350
commit debb502ff3
2 changed files with 2 additions and 1 deletions

View File

@@ -1212,7 +1212,7 @@ main(int argc, char **argv)
if(sbeacon < 0)
DPRINTF(E_FATAL, L_GENERAL, "Failed to open sockets for sending Tivo beacon notify "
"messages. EXITING\n");
beaconev = { .fd = sbeacon, .rdwr = EVENT_READ, .process = ProcessTiVoBeacon };
beaconev = (struct event ){ .fd = sbeacon, .rdwr = EVENT_READ, .process = ProcessTiVoBeacon };
event_module.add(&beaconev);
tivo_bcast.sin_family = AF_INET;
tivo_bcast.sin_addr.s_addr = htonl(getBcastAddress());