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
Wim Lewis
nettle
Commits
5f5307e0
Commit
5f5307e0
authored
Oct 26, 2010
by
Niels Möller
Browse files
(main): No extra message for bad options.
Rev: nettle/examples/rsa-encrypt.c:1.3
parent
e9ded494
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/rsa-encrypt.c
View file @
5f5307e0
...
...
@@ -163,7 +163,8 @@ main(int argc, char **argv)
int
c
;
const
char
*
random_name
=
NULL
;
/* FIXME: --help option. */
while
(
(
c
=
getopt
(
argc
,
argv
,
"o:r:"
))
!=
-
1
)
switch
(
c
)
{
...
...
@@ -172,12 +173,8 @@ main(int argc, char **argv)
break
;
case
'?'
:
if
(
isprint
(
optopt
))
werror
(
"Unknown option `-%c'.
\n
"
,
optopt
);
else
werror
(
"Unknown option character `
\\
x%x'.
\n
"
,
optopt
);
return
EXIT_FAILURE
;
default:
abort
();
}
...
...
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