[PATCH] Interpret YYDEBUG defined to zero as if it was undefined
David Michael <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.devel |
|---|---|
| Message-ID | <[email protected]> |
---
Hi,
If YYDEBUG is undefined, it's defined to 0 in gram.h, but then
testsudoers.c tries to "#ifdef" it and gets unexpected results, which
later breaks linking. Can this test be made consistent with gram.c and
getdate.c which rely on undefined symbols evaluating to zero?
Thanks.
David
plugins/sudoers/testsudoers.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/sudoers/testsudoers.c b/plugins/sudoers/testsudoers.c
index a5027ad..7fd2673 100644
--- a/plugins/sudoers/testsudoers.c
+++ b/plugins/sudoers/testsudoers.c
@@ -106,7 +106,7 @@ static char *runas_group, *runas_user;
#if defined(SUDO_DEVEL) && defined(__OpenBSD__)
extern char *malloc_options;
#endif
-#ifdef YYDEBUG
+#if YYDEBUG
extern int sudoersdebug;
#endif
@@ -128,7 +128,7 @@ main(int argc, char *argv[])
#if defined(SUDO_DEVEL) && defined(__OpenBSD__)
malloc_options = "AFGJPR";
#endif
-#ifdef YYDEBUG
+#if YYDEBUG
sudoersdebug = 1;
#endif
--
2.1.0
____________________________________________________________
sudo-workers mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-workers