On Tue, Feb 18, 2003 at 12:01:29PM +0100, Dag-Erling Smorgrav wrote: > Kris Kennaway <[EMAIL PROTECTED]> writes: > > http://bento.freebsd.org/errorlogs/i386-5-latest/netatalk-1.6.0_1,1.log > > The code that fails to compile is blatantly wrong: > > memset(schedule, 0, sizeof(schedule));
I wouldn't say `blantantly'. The expressions `schedule' and `&schedule' are equivalent when `schedule' is an array type. I'd call it `ignoring an idiom'. Anyway, with libdes or OpenSSL < 0.9.7, the type of `schedule' would have been an array. With OpenSSL >= 0.9.7, the type of `schedule' is a struct. This port uses <des.h>, which we have as a symlink to <openssl/des.h> (ugh, I'd better remove that, too). If that include is replaced with e.g. #ifdef HAVE_OPENSSL #define OPENSSL_DES_LIBDES_COMPATIBILITY #include <openssl/des.h> #else #include <des.h> #endif things will be fine. -- Jacques A. Vidrine <[EMAIL PROTECTED]> http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message