diff options
author | Werner Koch <[email protected]> | 2015-03-17 08:19:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-03-17 08:19:55 +0000 |
commit | eb5f2c0af6691229300ac120ee44815cb27ed38e (patch) | |
tree | fa098afd00209c8b1bc3ae2fb57d27aa9f392f3c /common/argparse.h | |
parent | Typo fix. (diff) | |
download | gnupg-eb5f2c0af6691229300ac120ee44815cb27ed38e.tar.gz gnupg-eb5f2c0af6691229300ac120ee44815cb27ed38e.zip |
common: Allow standalone build of argparse.c
* common/argparse.h: Remove types.h - not required.
* common/argparse.c: Change to allow standalone use.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/argparse.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/common/argparse.h b/common/argparse.h index 471cf7479..b4dc25373 100644 --- a/common/argparse.h +++ b/common/argparse.h @@ -32,7 +32,6 @@ #define LIBJNLIB_ARGPARSE_H #include <stdio.h> -#include "types.h" typedef struct { @@ -193,12 +192,12 @@ typedef struct #define ARGPARSE_INVALID_ARG (-12) -int arg_parse( ARGPARSE_ARGS *arg, ARGPARSE_OPTS *opts); -int optfile_parse( FILE *fp, const char *filename, unsigned *lineno, +int arg_parse (ARGPARSE_ARGS *arg, ARGPARSE_OPTS *opts); +int optfile_parse (FILE *fp, const char *filename, unsigned *lineno, ARGPARSE_ARGS *arg, ARGPARSE_OPTS *opts); -void usage( int level ); -const char *strusage( int level ); -void set_strusage( const char *(*f)( int ) ); +void usage (int level); +const char *strusage (int level); +void set_strusage (const char *(*f)( int )); void argparse_register_outfnc (int (*fnc)(int, const char *)); #endif /*LIBJNLIB_ARGPARSE_H*/ |