openbsd-ports/x11/vlc/patches/patch-include_vlc_threads_funcs_h
2006-11-03 15:15:07 +00:00

112 lines
3.5 KiB
Plaintext

$OpenBSD: patch-include_vlc_threads_funcs_h,v 1.3 2006/11/03 15:15:07 jolan Exp $
--- include/vlc_threads_funcs.h.orig Sat May 6 10:52:25 2006
+++ include/vlc_threads_funcs.h Fri Oct 20 14:32:38 2006
@@ -69,7 +69,7 @@ static inline int __vlc_mutex_lock( cons
{
int i_result;
/* In case of error : */
- int i_thread = -1;
+ long i_thread = -1;
const char * psz_error = "";
#if defined( PTH_INIT_IN_PTH_H )
@@ -111,7 +111,7 @@ static inline int __vlc_mutex_lock( cons
i_result = pthread_mutex_lock( &p_mutex->mutex );
if ( i_result )
{
- i_thread = (int)pthread_self();
+ i_thread = (long)pthread_self();
psz_error = strerror(i_result);
}
@@ -124,7 +124,7 @@ static inline int __vlc_mutex_lock( cons
if( i_result )
{
msg_Err( p_mutex->p_this,
- "thread %u: mutex_lock failed at %s:%d (%d:%s)",
+ "thread %lu: mutex_lock failed at %s:%d (%d:%s)",
i_thread, psz_file, i_line, i_result, psz_error );
}
return i_result;
@@ -141,7 +141,7 @@ static inline int __vlc_mutex_unlock( co
{
int i_result;
/* In case of error : */
- int i_thread = -1;
+ long i_thread = -1;
const char * psz_error = "";
#if defined( PTH_INIT_IN_PTH_H )
@@ -184,7 +184,7 @@ static inline int __vlc_mutex_unlock( co
i_result = pthread_mutex_unlock( &p_mutex->mutex );
if ( i_result )
{
- i_thread = (int)pthread_self();
+ i_thread = (long)pthread_self();
psz_error = strerror(i_result);
}
@@ -197,7 +197,7 @@ static inline int __vlc_mutex_unlock( co
if( i_result )
{
msg_Err( p_mutex->p_this,
- "thread %u: mutex_unlock failed at %s:%d (%d:%s)",
+ "thread %lu: mutex_unlock failed at %s:%d (%d:%s)",
i_thread, psz_file, i_line, i_result, psz_error );
}
@@ -227,7 +227,7 @@ static inline int __vlc_cond_signal( con
{
int i_result;
/* In case of error : */
- int i_thread = -1;
+ long i_thread = -1;
const char * psz_error = "";
#if defined( PTH_INIT_IN_PTH_H )
@@ -322,7 +322,7 @@ static inline int __vlc_cond_signal( con
i_result = pthread_cond_signal( &p_condvar->cond );
if ( i_result )
{
- i_thread = (int)pthread_self();
+ i_thread = (long)pthread_self();
psz_error = strerror(i_result);
}
@@ -339,7 +339,7 @@ static inline int __vlc_cond_signal( con
if( i_result )
{
msg_Err( p_condvar->p_this,
- "thread %u: cond_signal failed at %s:%d (%d:%s)",
+ "thread %lu: cond_signal failed at %s:%d (%d:%s)",
i_thread, psz_file, i_line, i_result, psz_error );
}
@@ -357,7 +357,7 @@ static inline int __vlc_cond_wait( const
{
int i_result;
/* In case of error : */
- int i_thread = -1;
+ long i_thread = -1;
const char * psz_error = "";
#if defined( PTH_INIT_IN_PTH_H )
@@ -512,7 +512,7 @@ static inline int __vlc_cond_wait( const
if ( i_result )
{
- i_thread = (int)pthread_self();
+ i_thread = (long)pthread_self();
psz_error = strerror(i_result);
}
@@ -525,7 +525,7 @@ static inline int __vlc_cond_wait( const
if( i_result )
{
msg_Err( p_condvar->p_this,
- "thread %u: cond_wait failed at %s:%d (%d:%s)",
+ "thread %lu: cond_wait failed at %s:%d (%d:%s)",
i_thread, psz_file, i_line, i_result, psz_error );
}