1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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 80d0432316)
This commit is contained in:
Jeremy Allison 2003-06-10 17:30:28 +00:00
parent 09530bfa60
commit 5cee22714c
2 changed files with 5 additions and 4 deletions

View File

@ -1035,10 +1035,6 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
int vasprintf(char **ptr, const char *format, va_list ap);
#endif
#if !defined(HAVE_BZERO) && defined(HAVE_MEMSET)
#define bzero(a,b) memset((a),'\0',(b))
#endif
#ifdef REPLACE_GETPASS
#define getpass(prompt) getsmbpass((prompt))
#endif

View File

@ -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 */