Fix more compilation mistakes from 338ee4bd7bb44 in TiVo.

This commit is contained in:
Gleb Smirnoff 2018-01-15 13:22:06 -08:00 committed by Justin Maggard
parent 3e8da9bb1a
commit f7604117c0
2 changed files with 5 additions and 3 deletions

View File

@ -47,6 +47,7 @@
#include <sys/poll.h> #include <sys/poll.h>
#include <netdb.h> #include <netdb.h>
#include "event.h"
#include "tivo_beacon.h" #include "tivo_beacon.h"
#include "upnpglobalvars.h" #include "upnpglobalvars.h"
#include "log.h" #include "log.h"
@ -288,15 +289,16 @@ rcvBeaconMessage(char *beacon)
return 0; return 0;
} }
void ProcessTiVoBeacon(int s) void ProcessTiVoBeacon(struct event *ev)
{ {
int n; int s, n;
char *cp; char *cp;
struct sockaddr_in sendername; struct sockaddr_in sendername;
socklen_t len_r; socklen_t len_r;
char bufr[1500]; char bufr[1500];
len_r = sizeof(struct sockaddr_in); len_r = sizeof(struct sockaddr_in);
s = ev->fd;
/* We only expect to see beacon msgs from TiVo's and possibly other tivo servers */ /* We only expect to see beacon msgs from TiVo's and possibly other tivo servers */
n = recvfrom(s, bufr, sizeof(bufr), 0, n = recvfrom(s, bufr, sizeof(bufr), 0,
(struct sockaddr *)&sendername, &len_r); (struct sockaddr *)&sendername, &len_r);

View File

@ -46,5 +46,5 @@ void
sendBeaconMessage(int fd, struct sockaddr_in * client, int len, int broadcast); sendBeaconMessage(int fd, struct sockaddr_in * client, int len, int broadcast);
void void
ProcessTiVoBeacon(int fd); ProcessTiVoBeacon(struct event *);
#endif #endif