public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [OBV][PATCH] gdb: Use NULL not 0 in a tui function.
@ 2015-05-21 19:31 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2015-05-21 19:31 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

Pushed as obvious clean up.

Thanks,
Andrew

--

gdb/ChangeLog:

	* tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
---
 gdb/ChangeLog      | 4 ++++
 gdb/tui/tui-regs.c | 6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f9b91d5..42ef67d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
 
+	* tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
+
+2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
 	* tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
 	buf_ptr is freed.
 
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 903c7c6..8d4c0f8 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -561,14 +561,14 @@ tui_reg_next_command (char *arg, int from_tty)
 {
   struct gdbarch *gdbarch = get_current_arch ();
 
-  if (TUI_DATA_WIN != 0)
+  if (TUI_DATA_WIN != NULL)
     {
       struct reggroup *group
         = TUI_DATA_WIN->detail.data_display_info.current_group;
 
       group = reggroup_next (gdbarch, group);
-      if (group == 0)
-        group = reggroup_next (gdbarch, 0);
+      if (group == NULL)
+        group = reggroup_next (gdbarch, NULL);
 
       if (group)
         tui_show_registers (group);
-- 
2.4.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-21 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-21 19:31 [OBV][PATCH] gdb: Use NULL not 0 in a tui function Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).