apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwool...@apache.org
Subject cvs commit: apr/threadproc/unix threadpriv.c
Date Mon, 19 Feb 2001 20:55:39 GMT
jwoolley    01/02/19 12:55:39

  Modified:    threadproc/unix threadpriv.c
  Log:
  Remove a useless test.
  
  This file still doesn't compile with Cygwin's pthread.h, but that seems to be
  Cygwin's fault.
  
  Revision  Changes    Path
  1.32      +2 -5      apr/threadproc/unix/threadpriv.c
  
  Index: threadpriv.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/unix/threadpriv.c,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -d -u -r1.31 -r1.32
  --- threadpriv.c	2001/02/16 04:16:19	1.31
  +++ threadpriv.c	2001/02/19 20:55:36	1.32
  @@ -62,7 +62,6 @@
   apr_status_t apr_threadkey_private_create(apr_threadkey_t **key, 
                                        void (*dest)(void *), apr_pool_t *cont)
   {
  -    apr_status_t stat;
       (*key) = (apr_threadkey_t *)apr_pcalloc(cont, sizeof(apr_threadkey_t));
   
       if ((*key) == NULL) {
  @@ -71,10 +70,8 @@
   
       (*key)->cntxt = cont;
   
  -    if ((stat = pthread_key_create(&(*key)->key, dest)) == 0) {
  -        return stat;
  -    }
  -    return stat;
  +    return pthread_key_create(&(*key)->key, dest);
  +
   }
   
   apr_status_t apr_threadkey_private_get(void **new, apr_threadkey_t *key)
  
  
  

Mime
View raw message