Fix more compilation mistakes from 338ee4bd7bb44 in TiVo.
This commit is contained in:
parent
3e8da9bb1a
commit
f7604117c0
@ -47,6 +47,7 @@
|
||||
#include <sys/poll.h>
|
||||
#include <netdb.h>
|
||||
|
||||
#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);
|
||||
|
@ -46,5 +46,5 @@ void
|
||||
sendBeaconMessage(int fd, struct sockaddr_in * client, int len, int broadcast);
|
||||
|
||||
void
|
||||
ProcessTiVoBeacon(int fd);
|
||||
ProcessTiVoBeacon(struct event *);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user