ykpers: fix compilation with GCC10

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-06-29 17:58:02 -07:00
parent c11726f14a
commit cbee15724c
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
--- a/ykpers-args.h
+++ b/ykpers-args.h
@@ -33,8 +33,8 @@
#include "ykpers.h"
-const char *usage;
-const char *optstring;
+extern const char *usage;
+extern const char *optstring;
int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, char *oathid,
size_t oathid_len, const char **infname,