The ARG macro should be uppercased when undefining it

This isn't a bug right now, but it could be in the future if ARG is
used in a different context.
This commit is contained in:
Daniel Parks
2022-05-23 12:08:25 -05:00
parent 6c73057156
commit 3341bfd6c5

View File

@@ -3103,7 +3103,7 @@ int main(int argc, const char **argv)
{ NULL, '\0', POPT_ARG_CALLBACK, basic_options_cb, 0, NULL, NULL },
#define ARG(A, B, C, D, E, F, G, H) { A, B, C, NULL, A ## _ID, D, E },
#include "cryptsetup_arg_list.h"
#undef arg
#undef ARG
POPT_TABLEEND
};
static struct poptOption popt_options[] = {