Enlightenment CVS committal

Author  : vapier
Project : e16
Module  : e

Dir     : e16/e/dox


Modified Files:
        dox.c 


Log Message:
use a proper check for XOpenDisplay() return

===================================================================
RCS file: /cvs/e/e16/e/dox/dox.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- dox.c       7 Jan 2006 07:20:56 -0000       1.37
+++ dox.c       16 Apr 2006 04:13:18 -0000      1.38
@@ -253,7 +253,7 @@
    y = 0;
    pagenum = 0;
 
-   if ((int)(disp = XOpenDisplay(NULL)) < 1)
+   if ((disp = XOpenDisplay(NULL)) == NULL)
      {
        printf("%s: Cannot open X display.\n", argv[0]);
        exit(0);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to