mirror of https://gerrit.osmocom.org/libosmocore
Drop old BSC references in fd check configure option
Change-Id: I053c2bfe461aa82085e7dac1cdcc95dd77219949
This commit is contained in:
parent
0ae0fa1623
commit
d05def0885
|
@ -227,12 +227,12 @@ fi
|
||||||
AC_ARG_ENABLE(bsc_fd_check,
|
AC_ARG_ENABLE(bsc_fd_check,
|
||||||
[AS_HELP_STRING(
|
[AS_HELP_STRING(
|
||||||
[--enable-bsc-fd-check],
|
[--enable-bsc-fd-check],
|
||||||
[Instrument bsc_register_fd to check that the fd is registered]
|
[Instrument osmo_fd_register to check that the fd is registered]
|
||||||
)],
|
)],
|
||||||
[fd_check=$enableval], [fd_check="no"])
|
[fd_check=$enableval], [fd_check="no"])
|
||||||
if test x"$fd_check" = x"no"
|
if test x"$fd_check" = x"no"
|
||||||
then
|
then
|
||||||
AC_DEFINE([BSC_FD_CHECK],[1],[Instrument the bsc_register_fd])
|
AC_DEFINE([OSMO_FD_CHECK],[1],[Instrument the osmo_fd_register])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(msgfile,
|
AC_ARG_ENABLE(msgfile,
|
||||||
|
|
|
@ -121,7 +121,7 @@ int osmo_fd_register(struct osmo_fd *fd)
|
||||||
if (fd->fd > maxfd)
|
if (fd->fd > maxfd)
|
||||||
maxfd = fd->fd;
|
maxfd = fd->fd;
|
||||||
|
|
||||||
#ifdef BSC_FD_CHECK
|
#ifdef OSMO_FD_CHECK
|
||||||
if (osmo_fd_is_registered(fd)) {
|
if (osmo_fd_is_registered(fd)) {
|
||||||
fprintf(stderr, "Adding a osmo_fd that is already in the list.\n");
|
fprintf(stderr, "Adding a osmo_fd that is already in the list.\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue