r15629: fix some warnings
authorStefan Metzmacher <metze@samba.org>
Tue, 16 May 2006 00:37:13 +0000 (00:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:07:25 +0000 (14:07 -0500)
metze
(This used to be commit 803a602990b78eaec7b674ef3214b8ccea6a98f3)

source4/librpc/ndr/libndr.h
source4/librpc/ndr/ndr.c

index 629962960805e7fbc6f3e721414c7c7fa619e5c1..59bfc6ab000b6958d33ded1c0bf628dda9505acf 100644 (file)
@@ -104,7 +104,7 @@ struct ndr_print {
        uint32_t flags; /* LIBNDR_FLAG_* */
        uint32_t depth;
        struct ndr_token_list *switch_list;
-       void (*print)(struct ndr_print *, const char *, ...);
+       void (*print)(struct ndr_print *, const char *, ...) PRINTF_ATTRIBUTE(2,3);
        void *private_data;
 };
 
index c03cf6a58816438b3ec83456969c3b71485771cc..96d9fb2db91a0ce070f64561713778ccb2d6d635 100644 (file)
@@ -201,7 +201,7 @@ _PUBLIC_ void ndr_print_debug_helper(struct ndr_print *ndr, const char *format,
        free(s);
 }
 
-static void ndr_print_string_helper(struct ndr_print *ndr, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
+_PUBLIC_ void ndr_print_string_helper(struct ndr_print *ndr, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
 {
        va_list ap;
        int i;