Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
96c902f2
Commit
96c902f2
authored
Feb 17, 2011
by
Stephen Morris
Browse files
[trac584] message.cc: use getopt() instead of getopt_long() for Solaris
parent
6750a2bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/log/compiler/message.cc
View file @
96c902f2
...
...
@@ -467,19 +467,14 @@ warnDuplicates(MessageReader& reader) {
/// main file header for the invocation.
int
main
(
int
argc
,
char
*
*
argv
)
{
main
(
int
argc
,
char
*
argv
[]
)
{
const
struct
option
loptions
[]
=
{
// Long options
{
"help"
,
no_argument
,
NULL
,
'h'
},
{
"version"
,
no_argument
,
NULL
,
'v'
},
{
NULL
,
0
,
NULL
,
0
}
};
const
char
*
soptions
=
"hv"
;
// Short options
optind
=
1
;
// Ensure we start a new scan
int
opt
;
// Value of the option
while
((
opt
=
getopt
_long
(
argc
,
argv
,
soptions
,
loptions
,
NULL
))
!=
-
1
)
{
while
((
opt
=
getopt
(
argc
,
argv
,
soptions
))
!=
-
1
)
{
switch
(
opt
)
{
case
'h'
:
usage
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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