diff options
author | Tom Tromey <tromey@adacore.com> | 2022-06-03 10:35:30 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-06-03 10:35:30 -0600 |
commit | f5a0f5b503c43ed3e146bc0d3eca37784892b47e (patch) | |
tree | bee6424df1ecb5768fd30a8512c8ba4441ae442a /gdb/python | |
parent | 3dc8d5eadaecc37722ec6979acf320cf0b969be8 (diff) | |
download | gdb-f5a0f5b503c43ed3e146bc0d3eca37784892b47e.zip gdb-f5a0f5b503c43ed3e146bc0d3eca37784892b47e.tar.gz gdb-f5a0f5b503c43ed3e146bc0d3eca37784892b47e.tar.bz2 |
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.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-events.h | 2 | ||||
-rw-r--r-- | gdb/python/py-evtregistry.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-events.h b/gdb/python/py-events.h index bd4a75c..1680b58 100644 --- a/gdb/python/py-events.h +++ b/gdb/python/py-events.h @@ -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 */ diff --git a/gdb/python/py-evtregistry.c b/gdb/python/py-evtregistry.c index 003fe44..ef96c48 100644 --- a/gdb/python/py-evtregistry.c +++ b/gdb/python/py-evtregistry.c @@ -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; |