mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* main.h, misc.c (optsep, argsplit, optlen, parse_options): Simplify code
and properly handle a partial match against an option with an argument. * keyserver-internal.h, keyserver.c (parse_keyserver_options): Use new optsep and argsplit functions.
This commit is contained in:
parent
2936e539cc
commit
0a17966a21
5 changed files with 62 additions and 37 deletions
|
@ -108,8 +108,8 @@ struct parse_options
|
|||
char **value;
|
||||
};
|
||||
|
||||
char *argsplit(char **stringp);
|
||||
char *argsep(char **stringp,char **arg);
|
||||
char *optsep(char **stringp);
|
||||
char *argsplit(char *string);
|
||||
int parse_options(char *str,unsigned int *options,
|
||||
struct parse_options *opts,int noisy);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue