Use "bool" in more spots in TUI
[deliverable/binutils-gdb.git] / gdb / tui / tui.c
index 6fdfa4579f1fe4706468ed9b7b5b6a9fbfde6613..f73ef7d58bf7c6356953abb8505612bc71ebd3ee 100644 (file)
@@ -591,18 +591,16 @@ tui_is_window_visible (enum tui_win_type type)
   return tui_win_list[type]->is_visible ();
 }
 
-int
+bool
 tui_get_command_dimension (unsigned int *width, 
                           unsigned int *height)
 {
   if (!tui_active || (TUI_CMD_WIN == NULL))
-    {
-      return 0;
-    }
+    return false;
   
   *width = TUI_CMD_WIN->width;
   *height = TUI_CMD_WIN->height;
-  return 1;
+  return true;
 }
 
 void
This page took 0.024569 seconds and 4 git commands to generate.