From 0f58689cb81d5ab078e40f510a3ef55d6650f6b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 7 Sep 2008 19:12:17 +0300 Subject: [PATCH 1/1] Unexport vlc_thread_fatal (short lived) --- include/vlc_threads.h | 2 -- src/libvlccore.sym | 1 - src/misc/threads.c | 5 +++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/vlc_threads.h b/include/vlc_threads.h index 760115b811..3d7a6d9342 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -165,8 +165,6 @@ enum { #define vlc_thread_ready vlc_object_signal -VLC_EXPORT(void, vlc_thread_fatal, (const char *action, int error, const char *function, const char *file, unsigned line)); - #if defined(LIBVLC_USE_PTHREAD) # define vlc_assert_locked( m ) \ assert (pthread_mutex_lock (m) == EDEADLK) diff --git a/src/libvlccore.sym b/src/libvlccore.sym index 518e608f7f..27e8df2083 100644 --- a/src/libvlccore.sym +++ b/src/libvlccore.sym @@ -497,7 +497,6 @@ vlc_strlcpy vlc_strtoll vlc_submodule_create __vlc_thread_create -vlc_thread_fatal __vlc_thread_join __vlc_thread_set_priority vlc_threadvar_create diff --git a/src/misc/threads.c b/src/misc/threads.c index ab06cbba3e..8f7de86df8 100644 --- a/src/misc/threads.c +++ b/src/misc/threads.c @@ -111,8 +111,9 @@ static inline unsigned long vlc_threadid (void) ***************************************************************************** * This is mostly meant for debugging. *****************************************************************************/ -void vlc_thread_fatal (const char *action, int error, const char *function, - const char *file, unsigned line) +static void +vlc_thread_fatal (const char *action, int error, + const char *function, const char *file, unsigned line) { fprintf (stderr, "LibVLC fatal error %s (%d) in thread %lu ", action, error, vlc_threadid ()); -- 2.39.5