mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 14:55:12 +00:00
Fix old gcc2 variadic macro support.
This commit is contained in:
@@ -113,25 +113,25 @@ extern int ldapssl_set_strength(LDAP *ldap, int strength);
|
|||||||
|
|
||||||
#if defined(__GNUC__) && __GNUC__ == 2
|
#if defined(__GNUC__) && __GNUC__ == 2
|
||||||
# define DPRINTF1(fmt...) do { \
|
# define DPRINTF1(fmt...) do { \
|
||||||
if (ldap_conf.debug >= 1) \
|
|
||||||
sudo_warnx(__VA_ARGS__); \
|
|
||||||
sudo_debug_printf(SUDO_DEBUG_DIAG, fmt); \
|
sudo_debug_printf(SUDO_DEBUG_DIAG, fmt); \
|
||||||
|
if (ldap_conf.debug >= 1) \
|
||||||
|
sudo_warnx_nodebug(fmt); \
|
||||||
} while (0)
|
} while (0)
|
||||||
# define DPRINTF2(fmt...) do { \
|
# define DPRINTF2(fmt...) do { \
|
||||||
if (ldap_conf.debug >= 2) \
|
|
||||||
sudo_warnx(__VA_ARGS__); \
|
|
||||||
sudo_debug_printf(SUDO_DEBUG_INFO, fmt); \
|
sudo_debug_printf(SUDO_DEBUG_INFO, fmt); \
|
||||||
|
if (ldap_conf.debug >= 2) \
|
||||||
|
sudo_warnx_nodebug(fmt); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
# define DPRINTF1(...) do { \
|
# define DPRINTF1(...) do { \
|
||||||
if (ldap_conf.debug >= 1) \
|
|
||||||
sudo_warnx(__VA_ARGS__); \
|
|
||||||
sudo_debug_printf(SUDO_DEBUG_DIAG, __VA_ARGS__); \
|
sudo_debug_printf(SUDO_DEBUG_DIAG, __VA_ARGS__); \
|
||||||
|
if (ldap_conf.debug >= 1) \
|
||||||
|
sudo_warnx_nodebug(__VA_ARGS__); \
|
||||||
} while (0)
|
} while (0)
|
||||||
# define DPRINTF2(...) do { \
|
# define DPRINTF2(...) do { \
|
||||||
if (ldap_conf.debug >= 2) \
|
|
||||||
sudo_warnx(__VA_ARGS__); \
|
|
||||||
sudo_debug_printf(SUDO_DEBUG_INFO, __VA_ARGS__); \
|
sudo_debug_printf(SUDO_DEBUG_INFO, __VA_ARGS__); \
|
||||||
|
if (ldap_conf.debug >= 2) \
|
||||||
|
sudo_warnx_nodebug(__VA_ARGS__); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user