aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-file.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-01 20:15:36 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-01 20:15:36 +0000
commitc0645fb52f4a0e374e94ead66a060980b9151907 (patch)
treec37bf73acba66af70d96f4405fd78b4a245e773d /gdb/tui/tui-file.c
parent9b0ec667bc0650be29f66c7e26a2fcdc154de11e (diff)
downloadgdb-c0645fb52f4a0e374e94ead66a060980b9151907.zip
gdb-c0645fb52f4a0e374e94ead66a060980b9151907.tar.gz
gdb-c0645fb52f4a0e374e94ead66a060980b9151907.tar.bz2
2007-08-01 Michael Snyder <msnyder@access-company.com>
* tui/tui-data.c (tui_alloc_content): Move assign out of if, clean up long lines. (tui_alloc_generic_win_info): Tidy by using XMALLOC macro. (tui_alloc_win_info): Ditto. (tui_add_content_elements): Ditto. * tui/tui-file.c (tui_file_magic): Ditto.
Diffstat (limited to 'gdb/tui/tui-file.c')
-rw-r--r--gdb/tui/tui-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-file.c b/gdb/tui/tui-file.c
index f3e8f03..e8eaef8 100644
--- a/gdb/tui/tui-file.c
+++ b/gdb/tui/tui-file.c
@@ -59,7 +59,7 @@ static int tui_file_magic;
static struct ui_file *
tui_file_new (void)
{
- struct tui_stream *tui = xmalloc (sizeof (struct tui_stream));
+ struct tui_stream *tui = XMALLOC (struct tui_stream);
struct ui_file *file = ui_file_new ();
set_ui_file_data (file, tui, tui_file_delete);
set_ui_file_flush (file, tui_file_flush);