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 user.c
Date Tue, 24 May 2005 09:18:29 GMT
mturk       2005/05/24 02:18:29

  Modified:    jni/native/src user.c
  Log:
  Remove extra casting..
  
  Revision  Changes    Path
  1.2       +6 -6      jakarta-tomcat-connectors/jni/native/src/user.c
  
  Index: user.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/user.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- user.c	14 Jan 2005 13:47:58 -0000	1.1
  +++ user.c	24 May 2005 09:18:29 -0000	1.2
  @@ -93,7 +93,7 @@
   TCN_IMPLEMENT_CALL(jstring, User, username)(TCN_STDARGS, jlong userid, jlong pool)
   {
       apr_pool_t *p = J2P(pool, apr_pool_t *);
  -    apr_uid_t uid = (apr_uid_t)(long)userid;
  +    apr_uid_t uid = (apr_uid_t)userid;
       char *uname = NULL;
   
       UNREFERENCED(o);
  @@ -109,7 +109,7 @@
   TCN_IMPLEMENT_CALL(jstring, User, groupname)(TCN_STDARGS, jlong grpid, jlong pool)
   {
       apr_pool_t *p = J2P(pool, apr_pool_t *);
  -    apr_gid_t gid = (apr_uid_t)(long)grpid;
  +    apr_gid_t gid = (apr_uid_t)grpid;
       char *gname = NULL;
   
       UNREFERENCED(o);
  @@ -126,16 +126,16 @@
   {
   
       UNREFERENCED_STDARGS;
  -    return (int)apr_uid_compare((apr_uid_t)(long)left,
  -                                (apr_uid_t)(long)right);
  +    return (int)apr_uid_compare((apr_uid_t)left,
  +                                (apr_uid_t)right);
   }
   
   TCN_IMPLEMENT_CALL(jint, User,gidcompare)(TCN_STDARGS, jlong left, jlong right)
   {
   
       UNREFERENCED_STDARGS;
  -    return (int)apr_gid_compare((apr_gid_t)(long)left,
  -                                (apr_gid_t)(long)right);
  +    return (int)apr_gid_compare((apr_gid_t)left,
  +                                (apr_gid_t)right);
   }
   
   TCN_IMPLEMENT_CALL(jstring, User, homepath)(TCN_STDARGS, jstring uname, jlong pool)
  
  
  

---------------------------------------------------------------------
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