List:Commits« Previous MessageNext Message »
From:jwinstead Date:July 11 2007 6:12pm
Subject:Connector/ODBC 3.51 commit: r564 - trunk/test/include
View as plain text  
Modified:
   trunk/test/include/mytest3.h
Log:
Fix warnings by using char * for argument to *_min_version() functions


Modified: trunk/test/include/mytest3.h
===================================================================
--- trunk/test/include/mytest3.h	2007-07-11 15:59:04 UTC (rev 563)
+++ trunk/test/include/mytest3.h	2007-07-11 16:12:15 UTC (rev 564)
@@ -534,7 +534,7 @@
 /*
   Check for minimal MySQL version
 */
-bool mysql_min_version(SQLHDBC hdbc, SQLCHAR *min_version, unsigned int length)
+bool mysql_min_version(SQLHDBC hdbc, char *min_version, unsigned int length)
 {
     SQLCHAR server_version[MYSQL_NAME_LEN];
     SQLRETURN rc;
@@ -545,7 +545,7 @@
     rc = SQLGetInfo(hdbc,SQL_DBMS_VER,server_version,MYSQL_NAME_LEN,NULL);
     mycon(hdbc, rc);
 
-    if (strncmp((char *)server_version, (char *)min_version, length) >= 0)
+    if (strncmp((char *)server_version, min_version, length) >= 0)
         return true;
 
     return false;
@@ -554,7 +554,7 @@
 /*
   Check for minimal Connector/ODBC version
 */
-bool driver_min_version(SQLHDBC hdbc, SQLCHAR *min_version, unsigned int length)
+bool driver_min_version(SQLHDBC hdbc, char *min_version, unsigned int length)
 {
     SQLCHAR driver_version[MYSQL_NAME_LEN];
     SQLRETURN rc;
@@ -565,7 +565,7 @@
     rc = SQLGetInfo(hdbc,SQL_DRIVER_VER,driver_version,MYSQL_NAME_LEN,NULL);
     mycon(hdbc, rc);
 
-    if (strncmp((char *)driver_version, (char *)min_version, length) >= 0)
+    if (strncmp((char *)driver_version, min_version, length) >= 0)
         return true;
 
     return false;

Thread
Connector/ODBC 3.51 commit: r564 - trunk/test/includejwinstead11 Jul