]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/shell-backends/shellutil.h
Do not return pointers into BerElement we do not own
[openldap] / servers / slapd / shell-backends / shellutil.h
index 119689d5fbdd226256c023d984b6ce60a681e138..28713094bb50af3c9cdf9bf9b152d8665852df1f 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  shellutil.h
 
@@ -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 */
 
 /*