Use bool for evregpy_no_listeners_p

I noticed that evregpy_no_listeners_p should return a bool.  This
patch makes this change.  I'm checking it in.
This commit is contained in:
Tom Tromey 2022-06-03 10:35:30 -06:00
parent 3dc8d5eada
commit f5a0f5b503
2 changed files with 2 additions and 2 deletions

View File

@ -52,6 +52,6 @@ struct events_object
extern events_object gdb_py_events;
extern eventregistry_object *create_eventregistry_object (void);
extern int evregpy_no_listeners_p (eventregistry_object *registry);
extern bool evregpy_no_listeners_p (eventregistry_object *registry);
#endif /* PYTHON_PY_EVENTS_H */

View File

@ -115,7 +115,7 @@ gdbpy_initialize_eventregistry (void)
/* Return the number of listeners currently connected to this
registry. */
int
bool
evregpy_no_listeners_p (eventregistry_object *registry)
{
return PyList_Size (registry->callbacks) == 0;