tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/native/src info.c jnilib.c
Date Tue, 24 May 2005 09:19:55 GMT
mturk       2005/05/24 02:19:55

  Modified:    jni/native/src info.c jnilib.c
  Log:
  Fix compile time warnings using correct casting
  
  Revision  Changes    Path
  1.5       +2 -2      jakarta-tomcat-connectors/jni/native/src/info.c
  
  Index: info.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/info.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- info.c	16 Apr 2005 16:45:13 -0000	1.4
  +++ info.c	24 May 2005 09:19:55 -0000	1.5
  @@ -184,8 +184,8 @@
       SET_FINFO_I(valid, info->valid);
       SET_FINFO_I(protection, info->protection);
       SET_FINFO_I(filetype, info->filetype);
  -    SET_FINFO_I(user, info->user);
  -    SET_FINFO_I(group, info->group);
  +    SET_FINFO_I(user, ((jlong)info->user));
  +    SET_FINFO_I(group, ((jlong)info->group));
       SET_FINFO_I(inode, info->inode);
       SET_FINFO_I(device, info->device);
       SET_FINFO_I(nlink, info->nlink);
  
  
  
  1.3       +1 -1      jakarta-tomcat-connectors/jni/native/src/jnilib.c
  
  Index: jnilib.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/jnilib.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- jnilib.c	20 May 2005 07:31:41 -0000	1.2
  +++ jnilib.c	24 May 2005 09:19:55 -0000	1.3
  @@ -85,7 +85,7 @@
       }
   
       len = strlen(str);
  -    bytes = (*env)->NewByteArray(env, len);
  +    bytes = (*env)->NewByteArray(env, (jsize)len);
       if (bytes != NULL) {
           (*env)->SetByteArrayRegion(env, bytes, 0, (jint)len, (jbyte *)str);
           result = (*env)->NewObject(env, jString_class, jString_init, bytes);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message