aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/ipaccess/ipaccess-find.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-05-06 12:11:23 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2011-05-06 12:11:23 +0200
commit4db92992865e1548e32ba2e95a9dc074dd90847b (patch)
tree2335b88a240978bd8181995d70040abe70030f9f /openbsc/src/ipaccess/ipaccess-find.c
parentbf540cb7c3e8fbcb6bd978cc3876340812dbf142 (diff)
src: use namespace prefix osmo_fd* and osmo_select*
Summary of changes: s/struct bsc_fd/struct osmo_fd/g s/bsc_register_fd/osmo_fd_register/g s/bsc_unregister_fd/osmo_fd_unregister/g s/bsc_select_main/osmo_select_main/g
Diffstat (limited to 'openbsc/src/ipaccess/ipaccess-find.c')
-rw-r--r--openbsc/src/ipaccess/ipaccess-find.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/ipaccess/ipaccess-find.c b/openbsc/src/ipaccess/ipaccess-find.c
index 24f602e5c..b0db045c5 100644
--- a/openbsc/src/ipaccess/ipaccess-find.c
+++ b/openbsc/src/ipaccess/ipaccess-find.c
@@ -141,7 +141,7 @@ static int read_response(int fd)
return parse_response(buf+6, len-6);
}
-static int bfd_cb(struct bsc_fd *bfd, unsigned int flags)
+static int bfd_cb(struct osmo_fd *bfd, unsigned int flags)
{
if (flags & BSC_FD_READ)
return read_response(bfd->fd);
@@ -156,7 +156,7 @@ static struct osmo_timer_list timer;
static void timer_cb(void *_data)
{
- struct bsc_fd *bfd = _data;
+ struct osmo_fd *bfd = _data;
bfd->when |= BSC_FD_WRITE;
@@ -165,7 +165,7 @@ static void timer_cb(void *_data)
int main(int argc, char **argv)
{
- struct bsc_fd bfd;
+ struct osmo_fd bfd;
char *ifname;
int rc;
@@ -187,7 +187,7 @@ int main(int argc, char **argv)
exit(1);
}
- bsc_register_fd(&bfd);
+ osmo_fd_register(&bfd);
timer.cb = timer_cb;
timer.data = &bfd;
@@ -197,7 +197,7 @@ int main(int argc, char **argv)
printf("Trying to find ip.access BTS by broadcast UDP...\n");
while (1) {
- rc = bsc_select_main(0);
+ rc = osmo_select_main(0);
if (rc < 0)
exit(3);
}