diff options
author | jsing <> | 2014-12-28 15:48:52 +0000 |
---|---|---|
committer | jsing <> | 2014-12-28 15:48:52 +0000 |
commit | 0a741ac7e42db811df0097733917db45dc05779e (patch) | |
tree | 133d9e945c00870d0638caa5e38213bcb77fe251 /src/usr.bin/openssl/version.c | |
parent | e4c7f4f3a5e8f184315c03f7e5313a6caf8e5be6 (diff) | |
download | openbsd-0a741ac7e42db811df0097733917db45dc05779e.tar.gz openbsd-0a741ac7e42db811df0097733917db45dc05779e.tar.bz2 openbsd-0a741ac7e42db811df0097733917db45dc05779e.zip |
Provide a mechanism for option parsing to return the number of arguments
that it has consumed. This allows for the handling of multiple unnamed
arguments, including lists of filenames.
Diffstat (limited to 'src/usr.bin/openssl/version.c')
-rw-r--r-- | src/usr.bin/openssl/version.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/version.c b/src/usr.bin/openssl/version.c index 953d0c3afe..2e28fa4345 100644 --- a/src/usr.bin/openssl/version.c +++ b/src/usr.bin/openssl/version.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: version.c,v 1.4 2014/12/28 14:21:42 jsing Exp $ */ | 1 | /* $OpenBSD: version.c,v 1.5 2014/12/28 15:48:52 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -217,7 +217,7 @@ version_main(int argc, char **argv) | |||
217 | { | 217 | { |
218 | memset(&version_config, 0, sizeof(version_config)); | 218 | memset(&version_config, 0, sizeof(version_config)); |
219 | 219 | ||
220 | if (options_parse(argc, argv, version_options, NULL) != 0) { | 220 | if (options_parse(argc, argv, version_options, NULL, NULL) != 0) { |
221 | version_usage(); | 221 | version_usage(); |
222 | return (1); | 222 | return (1); |
223 | } | 223 | } |