Instead of casting between structure types to get the 'tui_gen_win_info'
info from a 'tui_win_info' access the generic member variable.  This is
inline with what is done throughout the rest of the tui code.
gdb/ChangeLog:
	* tui/tui-win.c (tui_set_focus): Use structure member 'generic'
	instead of casting the structure type.
+2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
+       instead of casting the structure type.
+
 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
 
        * valops.c (search_struct_field): Remove OFFSET parameter.
 
        tui_refresh_data_win ();
       xfree (buf_ptr);
       printf_filtered (_("Focus set to %s window.\n"),
-                      tui_win_name ((struct tui_gen_win_info *)
-                                    tui_win_with_focus ()));
+                      tui_win_name (&tui_win_with_focus ()->generic));
     }
   else
     warning (_("Incorrect Number of Arguments.\n%s"), FOCUS_USAGE);