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 ssl.c
Date Tue, 24 May 2005 09:19:12 GMT
mturk       2005/05/24 02:19:12

  Modified:    jni/native/src ssl.c
  Log:
  Fix compile time warnings about unused variables and casting
  
  Revision  Changes    Path
  1.10      +4 -1      jakarta-tomcat-connectors/jni/native/src/ssl.c
  
  Index: ssl.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/ssl.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ssl.c	23 May 2005 07:20:27 -0000	1.9
  +++ ssl.c	24 May 2005 09:19:12 -0000	1.10
  @@ -108,6 +108,8 @@
   static void ssl_thread_lock(int mode, int type,
                               const char *file, int line)
   {
  +    UNREFERENCED(file);
  +    UNREFERENCED(line);
       if (type < ssl_lock_num_locks) {
           if (mode & CRYPTO_LOCK) {
               apr_thread_mutex_lock(ssl_lock_cs[type]);
  @@ -132,12 +134,13 @@
   
       return psaptr->PSATOLD;
   #else
  -    return (unsigned long) apr_os_thread_current();
  +    return (unsigned long)((jlong)apr_os_thread_current());
   #endif
   }
   
   static apr_status_t ssl_thread_cleanup(void *data)
   {
  +    UNREFERENCED(data);
       CRYPTO_set_locking_callback(NULL);
       CRYPTO_set_id_callback(NULL);
       /* Let the registered mutex cleanups do their own thing
  
  
  

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