Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
f0996b77
Commit
f0996b77
authored
Mar 21, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- getopt: use optind==0 for reentrency support and misc cleanup
parent
d56d8c00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
src/extras/getopt.c
src/extras/getopt.c
+0
-3
src/misc/configuration.c
src/misc/configuration.c
+1
-1
No files found.
src/extras/getopt.c
View file @
f0996b77
...
@@ -30,9 +30,6 @@
...
@@ -30,9 +30,6 @@
#define _NO_PROTO
#define _NO_PROTO
#endif
#endif
/* Overkill. */
#include <vlc/vlc.h>
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <config.h>
#endif
#endif
...
...
src/misc/configuration.c
View file @
f0996b77
...
@@ -1484,7 +1484,7 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[],
...
@@ -1484,7 +1484,7 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[],
* Parse the command line options
* Parse the command line options
*/
*/
opterr
=
0
;
opterr
=
0
;
optind
=
1
;
optind
=
0
;
// set to 0 to tell GNU getopt to reinitialize
while
(
(
i_cmd
=
getopt_long
(
*
pi_argc
,
ppsz_argv
,
psz_shortopts
,
while
(
(
i_cmd
=
getopt_long
(
*
pi_argc
,
ppsz_argv
,
psz_shortopts
,
p_longopts
,
&
i_index
)
)
!=
-
1
)
p_longopts
,
&
i_index
)
)
!=
-
1
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment