gdb: Use NULL not 0 in a tui function.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 21 May 2015 19:21:40 +0000 (21:21 +0200)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 21 May 2015 19:24:30 +0000 (21:24 +0200)
gdb/ChangeLog:

* tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.

gdb/ChangeLog
gdb/tui/tui-regs.c

index f9b91d5cd84692686cbd20f099657180c300a7e6..42ef67d9122f75b9f1431fce677154ed3775b4d7 100644 (file)
@@ -1,3 +1,7 @@
+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
index 903c7c63ff4e389d2a10f623787ee02bc58c1304..8d4c0f8f42c88dbd0db551ababfe26104403c31d 100644 (file)
@@ -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);