main: Squash constness warning

This commit is contained in:
Jasper St. Pierre 2014-02-03 18:02:16 -05:00
parent 965a784c8a
commit 0a9754f305

View File

@ -345,9 +345,13 @@ meta_clutter_init (void)
* also is %NULL, use the default - :0.0
*/
static void
meta_select_display (gchar *display_name)
meta_select_display (char *display_arg)
{
if (!display_name)
const char *display_name;
if (display_arg)
display_name = (const char *) display_arg;
else
display_name = g_getenv ("MUTTER_DISPLAY");
g_setenv ("DISPLAY", display_name, TRUE);