Remove unnecessary casts of NULL
[deliverable/binutils-gdb.git] / gdb / tui / tui-winsource.c
index a451d13f44bf8e180fc57cde677ac27da9d02e3b..eab422d6cf102bcc25080348770b608cfc5b53f5 100644 (file)
@@ -235,7 +235,7 @@ tui_erase_source_content (struct tui_win_info *win_info,
   int x_pos;
   int half_width = (win_info->generic.width - 2) / 2;
 
-  if (win_info->generic.handle != (WINDOW *) NULL)
+  if (win_info->generic.handle != NULL)
     {
       werase (win_info->generic.handle);
       tui_check_and_display_highlight_if_needed (win_info);
@@ -277,13 +277,13 @@ tui_show_source_line (struct tui_win_info *win_info, int lineno)
 
   line = win_info->generic.content[lineno - 1];
   if (line->which_element.source.is_exec_point)
-    wattron (win_info->generic.handle, A_STANDOUT);
+    tui_set_reverse_mode (win_info->generic.handle, true);
 
   wmove (win_info->generic.handle, lineno, 1);
   tui_puts (line->which_element.source.line,
            win_info->generic.handle);
   if (line->which_element.source.is_exec_point)
-    wattroff (win_info->generic.handle, A_STANDOUT);
+    tui_set_reverse_mode (win_info->generic.handle, false);
 
   /* Clear to end of line but stop before the border.  */
   x = getcurx (win_info->generic.handle);
@@ -399,7 +399,7 @@ tui_set_is_exec_point_at (struct tui_line_or_address l,
       i++;
     }
   if (changed)
-    tui_refresh_win (&win_info->generic);
+    tui_refill_source_window (win_info);
 }
 
 /* Update the execution windows to show the active breakpoints.
@@ -453,7 +453,7 @@ tui_update_breakpoint_info (struct tui_win_info *win,
          those that we already hit.  */
       mode = 0;
       for (bp = breakpoint_chain;
-           bp != (struct breakpoint *) NULL;
+           bp != NULL;
            bp = bp->next)
         {
          struct bp_location *loc;
@@ -504,8 +504,7 @@ tui_set_exec_info_content (struct tui_win_info *win_info)
 {
   enum tui_status ret = TUI_SUCCESS;
 
-  if (win_info->detail.source_info.execution_info
-      != (struct tui_gen_win_info *) NULL)
+  if (win_info->detail.source_info.execution_info != NULL)
     {
       struct tui_gen_win_info *exec_info_ptr
        = win_info->detail.source_info.execution_info;
This page took 0.025065 seconds and 4 git commands to generate.