[PATCH:xf86-video-xgi 16/19] Compare integer return values to integers.

Thomas Klausner wiz at NetBSD.org
Thu Aug 6 05:57:14 PDT 2015


Fixes:
warning: comparison between pointer and integer

Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
 src/xgi_opt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xgi_opt.c b/src/xgi_opt.c
index c0608d5..54153fc 100755
--- a/src/xgi_opt.c
+++ b/src/xgi_opt.c
@@ -315,13 +315,13 @@ xgiOptions(ScrnInfoPtr pScrn)
 				Non_DDCDefaultResolutionY , 
 				Non_DDCDefaultRefreshRate  );
 
-		if( (xf86NameCmp(Non_DDCDefaultResolutionX,"") == NULL) || (xf86NameCmp(Non_DDCDefaultResolutionY,"") == NULL) ) 
+		if( (xf86NameCmp(Non_DDCDefaultResolutionX,"") == 0) || (xf86NameCmp(Non_DDCDefaultResolutionY,"") == 0) ) 
 		{
 			strcpy(Non_DDCDefaultResolutionX, "1024");
 			strcpy(Non_DDCDefaultResolutionY, "768");
 		}
 
-		if( (xf86NameCmp(Non_DDCDefaultRefreshRate,"") == NULL) || (xf86NameCmp(Non_DDCDefaultRefreshRate,"auto") == NULL) ) 
+		if( (xf86NameCmp(Non_DDCDefaultRefreshRate,"") == 0) || (xf86NameCmp(Non_DDCDefaultRefreshRate,"auto") == 0) ) 
 				strcpy(Non_DDCDefaultRefreshRate, "60");
 
 		ErrorF("Non-DDC default mode is (%s x %s @ %s Hz)...\n", 
-- 
2.5.0



More information about the xorg-devel mailing list