on AIX FD_ZERO() is defined in terms of bzero(), so we can't have
authorAndrew Tridgell <tridge@samba.org>
Wed, 11 Jun 2003 05:34:14 +0000 (05:34 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 11 Jun 2003 05:34:14 +0000 (05:34 +0000)
the "don't use bzero" macros.

In general I think it would be better to have a separate script that
checks for deprecated functions like these using grep rather than
using these cpp tricks. They just get us into trouble.

source/include/safe_string.h

index 9f908bc145761404b478b04eae9adb7e144eb243..df3633d91d911aa848c22844d7d2f163c9d598c0 100644 (file)
 #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 */