X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fshell-backends%2Fshellutil.h;h=28713094bb50af3c9cdf9bf9b152d8665852df1f;hb=f8c0481dd47a78d24a57e9872e8b775a7152b4d2;hp=58775b2f99f5d99eca24284ad4e868fb94680b20;hpb=2a869f5a99f537b246ba8640502e2a86117cb6e8;p=openldap diff --git a/servers/slapd/shell-backends/shellutil.h b/servers/slapd/shell-backends/shellutil.h index 58775b2f99..28713094bb 100644 --- a/servers/slapd/shell-backends/shellutil.h +++ b/servers/slapd/shell-backends/shellutil.h @@ -1,3 +1,4 @@ +/* $OpenLDAP$ */ /* shellutil.h @@ -55,7 +56,7 @@ struct ldop { #define LDOP_SEARCH 0x01 char **ldop_suffixes; char *ldop_dn; - union { + union ldapop_params_u { struct ldsrchparms LDsrchparams; } ldop_params; #define ldop_srch ldop_params.LDsrchparams @@ -75,9 +76,9 @@ struct ldentry { #ifdef LDAP_DEBUG -void debug_printf LDAP_P((char *, ...)); +void debug_printf(const char *, ...) LDAP_GCCATTR((format(printf, 1, 2))); #else /* LDAP_DEBUG */ -#define debug_printf() +#define debug_printf (void) /* Ignore "arguments" */ #endif /* LDAP_DEBUG */ /* @@ -94,6 +95,8 @@ void add_strval( char ***sp, char *val ); char *ecalloc( unsigned nelem, unsigned elsize ); void *erealloc( void *s, unsigned size ); char *estrdup( char *s ); +extern void dump_ldop (struct ldop *op); + /* * global variables