From 98736d8e7fbe4c86f3b04af8c1c9368803904b7f Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Sun, 18 Feb 2007 13:05:54 +0000 Subject: [PATCH] Declare local functions static. --- src/control/input.c | 2 +- src/control/vlm.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/control/input.c b/src/control/input.c index c75d17bb60..b4a20fbeb1 100644 --- a/src/control/input.c +++ b/src/control/input.c @@ -36,7 +36,7 @@ void libvlc_input_free( libvlc_input_t *p_input ) * Retrieve the input thread. Be sure to release the object * once you are done with it. */ -input_thread_t *libvlc_get_input_thread( libvlc_input_t *p_input, +static input_thread_t *libvlc_get_input_thread( libvlc_input_t *p_input, libvlc_exception_t *p_e ) { input_thread_t *p_input_thread; diff --git a/src/control/vlm.c b/src/control/vlm.c index 069d48c162..78dced5b15 100644 --- a/src/control/vlm.c +++ b/src/control/vlm.c @@ -364,15 +364,15 @@ LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( seekable, int, Bool, 0); #undef LIBVLC_VLM_GET_MEDIA_ATTRIBUTE /* local function to be used in libvlc_vlm_show_media only */ -char* recurse_answer( char* psz_prefix, vlm_message_t *p_answer ) { +static char* recurse_answer( char* psz_prefix, vlm_message_t *p_answer ) { char* psz_childprefix; char* psz_response=""; char* response_tmp; int i; vlm_message_t *aw_child, **paw_child; - + asprintf( &psz_childprefix, "%s%s.", psz_prefix, p_answer->psz_name ); - + if ( p_answer->i_child ) { paw_child = p_answer->child; @@ -426,4 +426,5 @@ char* libvlc_vlm_show_media( libvlc_instance_t *p_instance, char *psz_name, free( psz_message ); return(psz_response ); #endif + return NULL; } -- 2.39.2