[Xxvt-commit] CVS: xxvt init.c,1.26,1.27
Status: Pre-Alpha
Brought to you by:
nlevitt
|
From: Pierre-Paul L. <pp...@us...> - 2002-04-12 02:47:14
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv13444
Modified Files:
init.c
Log Message:
corrected the error mesg on XOpenDisplay error (XOpenDisplay doesn't
set errno)
using NULL as argument to XDisplayName, should be changed to the
correct pointer when we have the option
Index: init.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/init.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- init.c 31 Mar 2002 03:40:53 -0000 1.26
+++ init.c 12 Apr 2002 02:47:10 -0000 1.27
@@ -118,7 +118,8 @@
xinfo->display = XOpenDisplay(NULL);
if (xinfo->display == NULL) {
- perror("XOpenDisplay");
+ fprintf(stderr, "unable to open display \"%s\"\n",
+ XDisplayName(NULL));
exit(EXIT_FAILURE);
}
|