summaryrefslogtreecommitdiffstats
path: root/source4
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 /source4
parent9b6ad0c496b33efc5a7bcaa282f8ef73f9d19c68 (diff)
downloadsamba-94bf599886a487851bb0f3e7c8f4f5e619f33ec0.tar.gz
samba-94bf599886a487851bb0f3e7c8f4f5e619f33ec0.tar.xz
samba-94bf599886a487851bb0f3e7c8f4f5e619f33ec0.zip
r15629: fix some warnings
metze (This used to be commit 803a602990b78eaec7b674ef3214b8ccea6a98f3)
Diffstat (limited to 'source4')
-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 62996296080..59bfc6ab000 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 c03cf6a5881..96d9fb2db91 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;