[vlc-devel] commit: Remove dead code (only a buggy getopt could reach this) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Apr 27 22:09:14 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 27 23:08:53 2009 +0300| [db3d601a21ee3f6c43b636a13c5cd14d088d3699] | committer: Rémi Denis-Courmont
Remove dead code (only a buggy getopt could reach this)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db3d601a21ee3f6c43b636a13c5cd14d088d3699
---
src/config/cmdline.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/config/cmdline.c b/src/config/cmdline.c
index cb9076a..264f84e 100644
--- a/src/config/cmdline.c
+++ b/src/config/cmdline.c
@@ -273,15 +273,14 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
psz_name = p_conf->psz_name;
}
-
- if( p_conf->i_type != CONFIG_ITEM_BOOL && !optarg )
- {
- fprintf( stderr, "Warning: missing argument for option --%s\n", p_conf->psz_name );
- fprintf( stderr, "Try specifying options as '--optionname=value' instead of '--optionname value'\n" );
- continue;
- }
-
-
+#ifdef __APPLE__
+ if( p_conf->i_type != CONFIG_ITEM_BOOL && !optarg )
+ {
+ fprintf( stderr, "Warning: missing argument for option --%s\n", p_conf->psz_name );
+ fprintf( stderr, "Try specifying options as '--optionname=value' instead of '--optionname value'\n" );
+ continue;
+ }
+#endif
switch( p_conf->i_type )
{
case CONFIG_ITEM_STRING:
More information about the vlc-devel
mailing list