From d5cbb675a9f0c5f56d01401870e5eceb3eb3a6d8 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 5 Aug 2011 18:02:47 +0200 Subject: pcap-client: Hacks to compile with an old libosmocore We are running a system where we do not want to upgrade libosmocore right now. Compile the osmo-pcap-client with a libosmocore from around January. --- src/osmo_client_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/osmo_client_core.c') diff --git a/src/osmo_client_core.c b/src/osmo_client_core.c index c8bd8bd..28f8a7e 100644 --- a/src/osmo_client_core.c +++ b/src/osmo_client_core.c @@ -23,7 +23,7 @@ #include #include -#include +#include #include @@ -32,7 +32,7 @@ #endif -static int pcap_read_cb(struct osmo_fd *fd, unsigned int what) +static int pcap_read_cb(struct bsc_fd *fd, unsigned int what) { struct osmo_pcap_client *client = fd->data; struct pcap_pkthdr hdr; @@ -86,7 +86,7 @@ static void free_all(struct osmo_pcap_client *client) pcap_freecode(&client->bpf); if (client->fd.fd >= 0) { - osmo_fd_unregister(&client->fd); + bsc_unregister_fd(&client->fd); client->fd.fd = -1; } @@ -127,7 +127,7 @@ int osmo_client_capture(struct osmo_pcap_client *client, const char *device) client->fd.when = BSC_FD_READ; client->fd.cb = pcap_read_cb; client->fd.data = client; - if (osmo_fd_register(&client->fd) != 0) { + if (bsc_register_fd(&client->fd) != 0) { LOGP(DCLIENT, LOGL_ERROR, "Failed to register the fd.\n"); client->fd.fd = -1; -- cgit v1.2.3