[shibboleth-sp2] 39/100: Fixed a few Solaris errors.

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to annotated tag 1.2.1
in repository shibboleth-sp2.

commit 67970d69a161d7b89bf3b8a30ac89e683d1bfc2a
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Wed Oct 13 18:32:04 2004 +0000

    Fixed a few Solaris errors.
---
 oncrpc/rpc_comm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/oncrpc/rpc_comm.c b/oncrpc/rpc_comm.c
index 155d952..af244ed 100644
--- a/oncrpc/rpc_comm.c
+++ b/oncrpc/rpc_comm.c
@@ -39,6 +39,7 @@
  * Mountain View, California  94043
  */
 #include <rpc/rpc.h>
+#include <stdio.h>
 /*
  * This file should only contain common data (global data) that is exported
  * by public interfaces 
@@ -92,7 +93,7 @@ struct __thr_rpc_vars* _get_thr_rpc_vars()
 
     pthread_once(&__thr_onc_control, _thr_onc_init);
     ptr = pthread_getspecific(__thr_key);
-    if (!ptr && ptr=malloc(sizeof(struct __thr_rpc_vars))) {
+    if (!ptr && (ptr=malloc(sizeof(struct __thr_rpc_vars)))) {
         memset(ptr,0,sizeof(struct __thr_rpc_vars));
         pthread_setspecific(__thr_key, ptr);
     }
@@ -107,9 +108,8 @@ void _thr_onc_init()
     pthread_key_create(&__thr_key, _thr_onc_term);
 }
 
-void _thr_onc_term(void*)
+void _thr_onc_term(void* ptr)
 {
-    void* ptr = pthread_getspecific(__thr_key);
     if (ptr)
         free(ptr);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list