[vlc-devel] commit: Use fputs - properly ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Sep 6 12:59:31 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Sep  6 14:02:45 2008 +0300| [924a06728da08d5d41ed992e5cefc209bbe65f3f] | committer: Rémi Denis-Courmont 

Use fputs - properly

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=924a06728da08d5d41ed992e5cefc209bbe65f3f
---

 src/config/cmdline.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/config/cmdline.c b/src/config/cmdline.c
index d2b92f5..7860e42 100644
--- a/src/config/cmdline.c
+++ b/src/config/cmdline.c
@@ -370,8 +370,8 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
         /* Internal error: unknown option */
         if( !b_ignore_errors )
         {
-            fputs( stderr, "vlc: unknown option"
-                     " or missing mandatory argument " );
+            fputs( "vlc: unknown option"
+                     " or missing mandatory argument ", stderr );
             if( optopt )
             {
                 fprintf( stderr, "`-%c'\n", optopt );
@@ -380,7 +380,7 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
             {
                 fprintf( stderr, "`%s'\n", ppsz_argv[optind-1] );
             }
-            fprintf( stderr, "Try `vlc --help' for more information.\n" );
+            fputs( "Try `vlc --help' for more information.\n", stderr );
 
             for( i_index = 0; p_longopts[i_index].name; i_index++ )
                 free( (char *)p_longopts[i_index].name );




More information about the vlc-devel mailing list