summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-16 00:37:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:07:25 -0500
commit94bf599886a487851bb0f3e7c8f4f5e619f33ec0 (patch)
tree22e77fed8569095f80e5201206859e2a7cab015f
parent9b6ad0c496b33efc5a7bcaa282f8ef73f9d19c68 (diff)
downloadsamba-94bf599886a487851bb0f3e7c8f4f5e619f33ec0.tar.gz
samba-94bf599886a487851bb0f3e7c8f4f5e619f33ec0.tar.bz2
samba-94bf599886a487851bb0f3e7c8f4f5e619f33ec0.zip
r15629: fix some warnings
metze (This used to be commit 803a602990b78eaec7b674ef3214b8ccea6a98f3)
-rw-r--r--source4/librpc/ndr/libndr.h2
-rw-r--r--source4/librpc/ndr/ndr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/ndr/libndr.h b/source4/librpc/ndr/libndr.h
index 6299629608..59bfc6ab00 100644
--- a/source4/librpc/ndr/libndr.h
+++ b/source4/librpc/ndr/libndr.h
@@ -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;
};
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c
index c03cf6a588..96d9fb2db9 100644
--- a/source4/librpc/ndr/ndr.c
+++ b/source4/librpc/ndr/ndr.c
@@ -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;