aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-loop.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-20 00:54:43 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-20 00:54:43 +0000
commit0e52036f1f47078a9863f6a377ff11e10a81e8c4 (patch)
tree843cc4d980261981f8a7053bd2d3a9c87c085ac6 /gdb/event-loop.c
parent81b8eb809e1fd6ad16bbeda4a365b8e7a81a441c (diff)
downloadfsf-binutils-gdb-0e52036f1f47078a9863f6a377ff11e10a81e8c4.zip
fsf-binutils-gdb-0e52036f1f47078a9863f6a377ff11e10a81e8c4.tar.gz
fsf-binutils-gdb-0e52036f1f47078a9863f6a377ff11e10a81e8c4.tar.bz2
Move realoc() decl to utils.c. s/realloc()/xrealloc()/.
Diffstat (limited to 'gdb/event-loop.c')
-rw-r--r--gdb/event-loop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index 0983fd3..5c30cf1 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -544,8 +544,9 @@ create_file_handler (int fd, int mask, handler_func * proc, gdb_client_data clie
gdb_notifier.num_fds++;
if (gdb_notifier.poll_fds)
gdb_notifier.poll_fds =
- (struct pollfd *) realloc (gdb_notifier.poll_fds,
- (gdb_notifier.num_fds) * sizeof (struct pollfd));
+ (struct pollfd *) xrealloc (gdb_notifier.poll_fds,
+ (gdb_notifier.num_fds
+ * sizeof (struct pollfd)));
else
gdb_notifier.poll_fds =
(struct pollfd *) xmalloc (sizeof (struct pollfd));