Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 92584 invoked by uid 500); 19 Feb 2001 20:55:44 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 92562 invoked by uid 1259); 19 Feb 2001 20:55:39 -0000 Date: 19 Feb 2001 20:55:39 -0000 Message-ID: <20010219205539.92561.qmail@apache.org> From: jwoolley@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/threadproc/unix threadpriv.c 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)