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/rand.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 '')
-rw-r--r-- | src/usr.bin/openssl/rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/rand.c b/src/usr.bin/openssl/rand.c index 6de2208b42..eccf4dee86 100644 --- a/src/usr.bin/openssl/rand.c +++ b/src/usr.bin/openssl/rand.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rand.c,v 1.5 2014/10/22 13:54:03 jsing Exp $ */ | 1 | /* $OpenBSD: rand.c,v 1.6 2014/12/28 15:48:52 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -123,7 +123,7 @@ rand_main(int argc, char **argv) | |||
123 | 123 | ||
124 | memset(&rand_config, 0, sizeof(rand_config)); | 124 | memset(&rand_config, 0, sizeof(rand_config)); |
125 | 125 | ||
126 | if (options_parse(argc, argv, rand_options, &num_bytes) != 0) { | 126 | if (options_parse(argc, argv, rand_options, &num_bytes, NULL) != 0) { |
127 | rand_usage(); | 127 | rand_usage(); |
128 | return (1); | 128 | return (1); |
129 | } | 129 | } |