diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-03-20 00:54:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-03-20 00:54:43 +0000 |
commit | 0e52036f1f47078a9863f6a377ff11e10a81e8c4 (patch) | |
tree | 843cc4d980261981f8a7053bd2d3a9c87c085ac6 /gdb/event-loop.c | |
parent | Move free() decl to utils.c. (diff) | |
download | binutils-gdb-0e52036f1f47078a9863f6a377ff11e10a81e8c4.tar.gz binutils-gdb-0e52036f1f47078a9863f6a377ff11e10a81e8c4.tar.bz2 binutils-gdb-0e52036f1f47078a9863f6a377ff11e10a81e8c4.zip |
Move realoc() decl to utils.c. s/realloc()/xrealloc()/.
Diffstat (limited to 'gdb/event-loop.c')
-rw-r--r-- | gdb/event-loop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/event-loop.c b/gdb/event-loop.c index 0983fd34c46..5c30cf12b63 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)); |