Ignore:
Timestamp:
Jun 28, 2009, 5:48:51 PM (16 years ago)
Author:
lpino
Message:
  • Changes to compile
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/platform-launcher/library/eclipseUtil.c

    r28 r160  
    44 * which accompanies this distribution, and is available at
    55 * http://www.eclipse.org/legal/cpl-v10.html
    6  * 
    7  * Contributors: 
     6 *
     7 * Contributors:
    88 *    Kevin Cornell (Rational Software Corporation)
    99 */
    10  
    11  
     10
     11
    1212/* Eclipse Launcher Utility Methods */
    1313
     
    2727
    2828/* Is the given VM J9 */
    29 int isJ9VM( char* vm ) 
     29int isJ9VM( char* vm )
    3030{
    3131        char *ch = strrchr( vm, (int)dirSeparator );
     
    3434        else
    3535            ch++;
    36         return (strcasecmp( ch, "j9" ) == 0);
     36        return (stricmp( ch, "j9" ) == 0);
    3737}
    3838
     
    4343#include <time.h>
    4444
    45 /* Return the JVM version in the format x.x.x 
     45/* Return the JVM version in the format x.x.x
    4646 */
    4747char* getVMVersion( char *vmPath )
     
    6262    /* Write java -version output to a temp file */
    6363    (void) sprintf(cmd,"%s -version 2> %s", vmPath, fileName);
    64     (void) system(cmd); 
     64    (void) system(cmd);
    6565
    6666    fp = fopen(fileName, "r");
     
    8585                        version[numChars] = '\0';
    8686                }
    87         } 
     87        }
    8888
    8989    return version;
     
    9191
    9292/* Compare JVM Versions of the form "x.x.x..."
    93  *     
     93 *
    9494 *    Returns -1 if ver1 < ver2
    95  *    Returns  0 if ver1 = ver2 
     95 *    Returns  0 if ver1 = ver2
    9696 *    Returns  1 if ver1 > ver2
    97  */     
     97 */
    9898int versionCmp(char *ver1, char *ver2)
    9999{
     
    120120    if (!dot1 && dot2)   /* x < x.y */
    121121        return -1;
    122    
     122
    123123    if (!dot1 && !dot2)  /* x == x */
    124124        return 0;
Note: See TracChangeset for help on using the changeset viewer.