From 0a741ac7e42db811df0097733917db45dc05779e Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 28 Dec 2014 15:48:52 +0000 Subject: 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. --- src/usr.bin/openssl/apps.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/usr.bin/openssl/apps.h') diff --git a/src/usr.bin/openssl/apps.h b/src/usr.bin/openssl/apps.h index b069d2d29b..c448e85d87 100644 --- a/src/usr.bin/openssl/apps.h +++ b/src/usr.bin/openssl/apps.h @@ -1,4 +1,4 @@ -/* $OpenBSD: apps.h,v 1.10 2014/12/28 14:21:42 jsing Exp $ */ +/* $OpenBSD: apps.h,v 1.11 2014/12/28 15:48:52 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -305,6 +305,7 @@ struct option { }; void options_usage(struct option *opts); -int options_parse(int argc, char **argv, struct option *opts, char **unnamed); +int options_parse(int argc, char **argv, struct option *opts, char **unnamed, + int *argsused); #endif -- cgit v1.2.3-55-g6feb