ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvttoolkit.C
(Generate patch)

Comparing rxvt-unicode/src/rxvttoolkit.C (file contents):
Revision 1.14 by root, Thu Jul 7 19:37:47 2005 UTC vs.
Revision 1.17 by root, Fri Aug 5 16:42:44 2005 UTC

153 strcat (val, id); 153 strcat (val, id);
154 display = XOpenDisplay (val); 154 display = XOpenDisplay (val);
155 free (val); 155 free (val);
156 } 156 }
157 else 157 else
158#endif
158 display = 0; 159 display = 0;
159#endif
160 160
161 if (!display) 161 if (!display)
162 display = XOpenDisplay (id); 162 display = XOpenDisplay (id);
163 163
164 if (!display) 164 if (!display)
171 depth = DefaultDepth (display, screen); 171 depth = DefaultDepth (display, screen);
172 172
173 int fd = XConnectionNumber (display); 173 int fd = XConnectionNumber (display);
174 174
175#ifndef NO_SLOW_LINK_SUPPORT 175#ifndef NO_SLOW_LINK_SUPPORT
176 // try to detetc wether we have a local connection. 176 // try to detect wether we have a local connection.
177 // assume unix domains socket == local, everything else not 177 // assume unix domains socket == local, everything else not
178 // TODO: might want to check for inet/127.0.0.1 178 // TODO: might want to check for inet/127.0.0.1
179 is_local = 0; 179 is_local = 0;
180 sockaddr_un sa; 180 sockaddr_un sa;
181 socklen_t sl = sizeof (sa); 181 socklen_t sl = sizeof (sa);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines