1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

gpgscm: Fix initialization for fixed size chars.

* tests/gpgscm/opdefines.h: Change the order of arguments.
* tests/gpgscm/scheme-private.h (_OP_DEF): OP comes first, and use
variadic args for the macro.
* tests/gpgscm/scheme.c (_OP_DEF): Likewise.
(TST_*): Use integers.
(check_arguments): Follow the change of TST_LIST.

--

GnuPG-bug-id: 7623
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2025-04-22 14:45:41 +09:00
parent 0070c2e3b4
commit 97583cf81a
No known key found for this signature in database
GPG key ID: 640114AF89DE6054
3 changed files with 207 additions and 207 deletions

View file

@ -207,7 +207,7 @@ const struct scheme_interface *vptr;
/* operator code */
enum scheme_opcodes {
#define _OP_DEF(A,B,C,D,OP) OP,
#define _OP_DEF(OP,A,B,C,...) OP,
#include "opdefines.h"
OP_MAXDEFINED
};