This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
dexter gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/1740
fixup
Change-Id: I541787411fccbe3866c16a0e80ff46dc786a5583
---
M include/osmocom/core/select.h
M src/select.c
2 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/40/1740/1
diff --git a/include/osmocom/core/select.h b/include/osmocom/core/select.h
index a912ea7..c2b51a4 100644
--- a/include/osmocom/core/select.h
+++ b/include/osmocom/core/select.h
@@ -36,7 +36,7 @@
unsigned int priv_nr;
};
-bool osmo_fd_register_check(struct osmo_fd *fd);
+bool osmo_fd_is_registered(struct osmo_fd *fd);
int osmo_fd_register(struct osmo_fd *fd);
void osmo_fd_unregister(struct osmo_fd *fd);
int osmo_select_main(int polling);
diff --git a/src/select.c b/src/select.c
index d7c89f3..ab0734e 100644
--- a/src/select.c
+++ b/src/select.c
@@ -51,7 +51,7 @@
* \param[in] fd osmocom file descriptor to be checked
* \returns true if registered; otherwise false
*/
-bool osmo_fd_register_check(struct osmo_fd *fd)
+bool osmo_fd_is_registered(struct osmo_fd *fd)
{
struct osmo_fd *entry;
llist_for_each_entry(entry, &osmo_fds, list) {
@@ -94,7 +94,7 @@
maxfd = fd->fd;
#ifdef BSC_FD_CHECK
- if (osmo_fd_register_check(fd)) {
+ if (osmo_fd_is_registered(fd)) {
fprintf(stderr, "Adding a osmo_fd that is already in the list.\n");
return 0;
}
@@ -112,7 +112,7 @@
{
/* Note: when fd is inside the osmo_fds list (not registered before)
* this function will crash! If in doubt, check file descriptor with
- * osmo_fd_register_check() */
+ * osmo_fd_is_registered() */
unregistered_count++;
llist_del(&fd->list);
}
--
To view, visit https://gerrit.osmocom.org/1740
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I541787411fccbe3866c16a0e80ff46dc786a5583
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>