Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
nexedi
MariaDB
Commits
0b5e2d98
Commit
0b5e2d98
authored
May 31, 2002
by
jani@dsl-jkl1657.dial.inet.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in my_getopt.
parent
673f67f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mysys/my_getopt.c
mysys/my_getopt.c
+3
-2
No files found.
mysys/my_getopt.c
View file @
0b5e2d98
...
@@ -324,8 +324,9 @@ int handle_options(int *argc, char ***argv,
...
@@ -324,8 +324,9 @@ int handle_options(int *argc, char ***argv,
}
}
else
/* must be short option */
else
/* must be short option */
{
{
for
(
optend
=
cur_arg
;
*
optend
;
optend
++
,
opt_found
=
0
)
for
(
optend
=
cur_arg
;
*
optend
;
optend
++
)
{
{
opt_found
=
0
;
for
(
optp
=
longopts
;
optp
->
id
;
optp
++
)
for
(
optp
=
longopts
;
optp
->
id
;
optp
++
)
{
{
if
(
optp
->
id
==
(
int
)
(
uchar
)
*
optend
)
if
(
optp
->
id
==
(
int
)
(
uchar
)
*
optend
)
...
@@ -379,7 +380,7 @@ int handle_options(int *argc, char ***argv,
...
@@ -379,7 +380,7 @@ int handle_options(int *argc, char ***argv,
{
{
if
(
my_getopt_print_errors
)
if
(
my_getopt_print_errors
)
fprintf
(
stderr
,
fprintf
(
stderr
,
"%s: unknown option '-%c'
\n
"
,
progname
,
*
cur_arg
);
"%s: unknown option '-%c'
\n
"
,
progname
,
*
optend
);
return
EXIT_UNKNOWN_OPTION
;
return
EXIT_UNKNOWN_OPTION
;
}
}
}
}
...
...
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