Subject: Re: CVS commit: basesrc
To: None <mycroft@netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: source-changes
Date: 01/27/2000 12:27:41
"Charles M. Hannum" wrote:

> Module Name:	basesrc
> Committed By:	mycroft
> Date:		Sun Jan 23 19:59:33 UTC 2000
> 
> Modified Files:
> 
> 	basesrc/usr.sbin/pwd_mkdb: Makefile pwd_mkdb.8 pwd_mkdb.c
> 
> Log Message:
> 
> Add explicit endianness overrides.

Should we not use internal DB macros but use something else like
bswap32() for the endian conversions?  Even just:

	#include <machine/bswap.h>


	#define M_32_SWAP(foo)	(foo) = bswap32((foo))

which has the (extremely slight!) advantage of being optimised for
each architecture...

Simon.