diff font/font_peer_x11.cc @ 47:5f548e5957a8

* get rid of the "deprecated conversion from string constant to ‘char*’" warnings
author thib
date Wed, 15 Apr 2009 20:26:32 +0000
parents 3a6aaeab7b4e
children 15a18fbe6f21
line wrap: on
line diff
--- a/font/font_peer_x11.cc
+++ b/font/font_peer_x11.cc
@@ -212,7 +212,7 @@ void PeerX11::InitDisplay(Display* _d) {
 void PeerX11::OpenDisplay(void) {
 	if (display) return;
 
-	char* display_name = getenv("DISPLAY");
+	const char* display_name = getenv("DISPLAY");
 	if (display_name == 0) display_name = ":0";
 
 	display = XOpenDisplay(display_name);