summaryrefslogtreecommitdiff
path: root/source3/include/safe_string.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-06-10 17:30:28 +0000
committerJeremy Allison <jra@samba.org>2003-06-10 17:30:28 +0000
commit5cee22714c1fc418dc8a3e1770e9048071b892d9 (patch)
tree6542a22f74614b249a4bd3f9be6b9c03f762c4f6 /source3/include/safe_string.h
parent09530bfa604ee60b62e10e638ab32e9c0059d65d (diff)
downloadsamba-5cee22714c1fc418dc8a3e1770e9048071b892d9.tar.gz
Ok, I've tried being Mr. Nice Guy and people (you know who you are) still
keep putting bzero BSD'ism's into our source code. Make this an error like bcopy and others to prevent it in future. Jeremy. (This used to be commit 80d043231626192db85f08ccea062b91fcf999cc)
Diffstat (limited to 'source3/include/safe_string.h')
-rw-r--r--source3/include/safe_string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/safe_string.h b/source3/include/safe_string.h
index df3633d91d9..9f908bc1457 100644
--- a/source3/include/safe_string.h
+++ b/source3/include/safe_string.h
@@ -32,6 +32,11 @@
#endif /* bcopy */
#define bcopy(src,dest,size) __ERROR__XX__NEVER_USE_BCOPY___;
+#ifdef bzero
+#undef bzero
+#endif /* bzero */
+#define bzero(dest,size) __ERROR__XX__NEVER_USE_BZERO_USE_MEMSET_INSTEAD___;
+
#ifdef strcpy
#undef strcpy
#endif /* strcpy */