summaryrefslogtreecommitdiff
path: root/source3/librpc/ndr
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-17 12:26:46 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-18 14:27:13 +0200
commit519458a2fa01ae7e8eadebbe1d7895740861c468 (patch)
tree4e93453621648c618d1e830f759437be2492de44 /source3/librpc/ndr
parent93310970e307c766a7fccbd38aaa82b376c1769e (diff)
downloadsamba-519458a2fa01ae7e8eadebbe1d7895740861c468.tar.gz
samba-519458a2fa01ae7e8eadebbe1d7895740861c468.tar.bz2
samba-519458a2fa01ae7e8eadebbe1d7895740861c468.zip
Use shared util.c.
Diffstat (limited to 'source3/librpc/ndr')
-rw-r--r--source3/librpc/ndr/util.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/librpc/ndr/util.c b/source3/librpc/ndr/util.c
index 427292ac70..457615ce22 100644
--- a/source3/librpc/ndr/util.c
+++ b/source3/librpc/ndr/util.c
@@ -155,20 +155,6 @@ void ndr_print_server_id(struct ndr_print *ndr, const char *name, const struct s
ndr->depth--;
}
-/**
- * see if a range of memory is all zero. A NULL pointer is considered
- * to be all zero
- */
-bool all_zero(const uint8_t *ptr, size_t size)
- {
- int i;
- if (!ptr) return True;
- for (i=0;i<size;i++) {
- if (ptr[i]) return False;
- }
- return True;
-}
-
_PUBLIC_ void ndr_print_bool(struct ndr_print *ndr, const char *name, const bool b)
{
ndr->print(ndr, "%-25s: %s", name, b?"true":"false");