comparison 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
comparison
equal deleted inserted replaced
46:3aa3d244ad90 47:5f548e5957a8
210 } 210 }
211 211
212 void PeerX11::OpenDisplay(void) { 212 void PeerX11::OpenDisplay(void) {
213 if (display) return; 213 if (display) return;
214 214
215 char* display_name = getenv("DISPLAY"); 215 const char* display_name = getenv("DISPLAY");
216 if (display_name == 0) display_name = ":0"; 216 if (display_name == 0) display_name = ":0";
217 217
218 display = XOpenDisplay(display_name); 218 display = XOpenDisplay(display_name);
219 219
220 if (display == 0) { 220 if (display == 0) {