Commit 9312c3dc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Really fix the vlm_MessageNew NULL warning

parent 04d23bd3
...@@ -187,6 +187,7 @@ VLC_EXPORT( void, vlm_Delete, ( vlm_t * ) ); ...@@ -187,6 +187,7 @@ VLC_EXPORT( void, vlm_Delete, ( vlm_t * ) );
VLC_EXPORT( int, vlm_ExecuteCommand, ( vlm_t *, const char *, vlm_message_t ** ) ); VLC_EXPORT( int, vlm_ExecuteCommand, ( vlm_t *, const char *, vlm_message_t ** ) );
VLC_EXPORT( int, vlm_Control, ( vlm_t *p_vlm, int i_query, ... ) ); VLC_EXPORT( int, vlm_Control, ( vlm_t *p_vlm, int i_query, ... ) );
VLC_EXPORT( vlm_message_t *, vlm_MessageSimpleNew, ( const char * ) );
VLC_EXPORT( vlm_message_t *, vlm_MessageNew, ( const char *, const char *, ... ) LIBVLC_FORMAT( 2, 3 ) ); VLC_EXPORT( vlm_message_t *, vlm_MessageNew, ( const char *, const char *, ... ) LIBVLC_FORMAT( 2, 3 ) );
VLC_EXPORT( vlm_message_t *, vlm_MessageAdd, ( vlm_message_t *, vlm_message_t * ) ); VLC_EXPORT( vlm_message_t *, vlm_MessageAdd, ( vlm_message_t *, vlm_message_t * ) );
VLC_EXPORT( void, vlm_MessageDelete, ( vlm_message_t * ) ); VLC_EXPORT( void, vlm_MessageDelete, ( vlm_message_t * ) );
......
...@@ -474,14 +474,13 @@ static void Run( intf_thread_t *p_intf ) ...@@ -474,14 +474,13 @@ static void Run( intf_thread_t *p_intf )
if( !strncmp( cl->buffer_read, "help", 4 ) ) if( !strncmp( cl->buffer_read, "help", 4 ) )
{ {
vlm_message_t *p_my_help = vlm_message_t *p_my_help =
vlm_MessageNew( "Telnet Specific Commands:", NULL ); vlm_MessageSimpleNew( "Telnet Specific Commands:" );
vlm_MessageAdd( p_my_help, vlm_MessageAdd( p_my_help,
vlm_MessageNew( "logout, quit, exit" , NULL ) ); vlm_MessageSimpleNew( "logout, quit, exit" ) );
vlm_MessageAdd( p_my_help, vlm_MessageAdd( p_my_help,
vlm_MessageNew( "shutdown" , NULL ) ); vlm_MessageSimpleNew( "shutdown" ) );
vlm_MessageAdd( p_my_help, vlm_MessageAdd( p_my_help,
vlm_MessageNew( "@moduleinstance command argument", vlm_MessageSimpleNew( "@moduleinstance command argument" ) );
NULL) );
vlm_MessageAdd( message, p_my_help ); vlm_MessageAdd( message, p_my_help );
} }
Write_message( cl, message, NULL, WRITE_MODE_CMD ); Write_message( cl, message, NULL, WRITE_MODE_CMD );
......
This diff is collapsed.
...@@ -503,6 +503,7 @@ vlm_ExecuteCommand ...@@ -503,6 +503,7 @@ vlm_ExecuteCommand
vlm_MessageAdd vlm_MessageAdd
vlm_MessageDelete vlm_MessageDelete
vlm_MessageNew vlm_MessageNew
vlm_MessageSimpleNew
__vlm_New __vlm_New
__vout_AllocatePicture __vout_AllocatePicture
vout_ChromaCmp vout_ChromaCmp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment