From f7604117c05ffc99bf25a85c4d54a99e65d0c0a8 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 15 Jan 2018 13:22:06 -0800 Subject: [PATCH] Fix more compilation mistakes from 338ee4bd7bb44 in TiVo. --- tivo_beacon.c | 6 ++++-- tivo_beacon.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tivo_beacon.c b/tivo_beacon.c index f2f80aa..bc8c976 100644 --- a/tivo_beacon.c +++ b/tivo_beacon.c @@ -47,6 +47,7 @@ #include #include +#include "event.h" #include "tivo_beacon.h" #include "upnpglobalvars.h" #include "log.h" @@ -288,15 +289,16 @@ rcvBeaconMessage(char *beacon) return 0; } -void ProcessTiVoBeacon(int s) +void ProcessTiVoBeacon(struct event *ev) { - int n; + int s, n; char *cp; struct sockaddr_in sendername; socklen_t len_r; char bufr[1500]; len_r = sizeof(struct sockaddr_in); + s = ev->fd; /* We only expect to see beacon msgs from TiVo's and possibly other tivo servers */ n = recvfrom(s, bufr, sizeof(bufr), 0, (struct sockaddr *)&sendername, &len_r); diff --git a/tivo_beacon.h b/tivo_beacon.h index 738042c..166fc53 100644 --- a/tivo_beacon.h +++ b/tivo_beacon.h @@ -46,5 +46,5 @@ void sendBeaconMessage(int fd, struct sockaddr_in * client, int len, int broadcast); void -ProcessTiVoBeacon(int fd); +ProcessTiVoBeacon(struct event *); #endif