*** sys/sys/endian.h.org.c4b	Thu Apr  3 13:32:01 2003
--- sys/sys/endian.h	Thu Jul 31 23:12:00 2003
***************
*** 94,100 ****
  static __inline uint16_t
  be16dec(const void *pp)
  {
! 	unsigned char const *p = pp;
  
  	return ((p[0] << 8) | p[1]);
  }
--- 94,100 ----
  static __inline uint16_t
  be16dec(const void *pp)
  {
! 	unsigned char const *p = (unsigned char const *) pp;
  
  	return ((p[0] << 8) | p[1]);
  }
***************
*** 102,108 ****
  static __inline uint32_t
  be32dec(const void *pp)
  {
! 	unsigned char const *p = pp;
  
  	return ((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]);
  }
--- 102,108 ----
  static __inline uint32_t
  be32dec(const void *pp)
  {
! 	unsigned char const *p = (unsigned char const *) pp;
  
  	return ((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]);
  }
***************
*** 110,116 ****
  static __inline uint64_t
  be64dec(const void *pp)
  {
! 	unsigned char const *p = pp;
  
  	return (((uint64_t)be32dec(p) << 32) | be32dec(p + 4));
  }
--- 110,116 ----
  static __inline uint64_t
  be64dec(const void *pp)
  {
! 	unsigned char const *p = (unsigned char const *) pp;
  
  	return (((uint64_t)be32dec(p) << 32) | be32dec(p + 4));
  }
***************
*** 118,124 ****
  static __inline uint16_t
  le16dec(const void *pp)
  {
! 	unsigned char const *p = pp;
  
  	return ((p[1] << 8) | p[0]);
  }
--- 118,124 ----
  static __inline uint16_t
  le16dec(const void *pp)
  {
! 	unsigned char const *p = (unsigned char const *) pp;
  
  	return ((p[1] << 8) | p[0]);
  }
***************
*** 126,132 ****
  static __inline uint32_t
  le32dec(const void *pp)
  {
! 	unsigned char const *p = pp;
  
  	return ((p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]);
  }
--- 126,132 ----
  static __inline uint32_t
  le32dec(const void *pp)
  {
! 	unsigned char const *p = (unsigned char const *) pp;
  
  	return ((p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]);
  }
***************
*** 134,140 ****
  static __inline uint64_t
  le64dec(const void *pp)
  {
! 	unsigned char const *p = pp;
  
  	return (((uint64_t)le32dec(p + 4) << 32) | le32dec(p));
  }
--- 134,140 ----
  static __inline uint64_t
  le64dec(const void *pp)
  {
! 	unsigned char const *p = (unsigned char const *) pp;
  
  	return (((uint64_t)le32dec(p + 4) << 32) | le32dec(p));
  }
***************
*** 142,148 ****
  static __inline void
  be16enc(void *pp, uint16_t u)
  {
! 	unsigned char *p = pp;
  
  	p[0] = (u >> 8) & 0xff;
  	p[1] = u & 0xff;
--- 142,148 ----
  static __inline void
  be16enc(void *pp, uint16_t u)
  {
! 	unsigned char *p = (unsigned char *) pp;
  
  	p[0] = (u >> 8) & 0xff;
  	p[1] = u & 0xff;
***************
*** 151,157 ****
  static __inline void
  be32enc(void *pp, uint32_t u)
  {
! 	unsigned char *p = pp;
  
  	p[0] = (u >> 24) & 0xff;
  	p[1] = (u >> 16) & 0xff;
--- 151,157 ----
  static __inline void
  be32enc(void *pp, uint32_t u)
  {
! 	unsigned char *p = (unsigned char *) pp;
  
  	p[0] = (u >> 24) & 0xff;
  	p[1] = (u >> 16) & 0xff;
***************
*** 162,168 ****
  static __inline void
  be64enc(void *pp, uint64_t u)
  {
! 	unsigned char *p = pp;
  
  	be32enc(p, u >> 32);
  	be32enc(p + 4, u & 0xffffffff);
--- 162,168 ----
  static __inline void
  be64enc(void *pp, uint64_t u)
  {
! 	unsigned char *p = (unsigned char *) pp;
  
  	be32enc(p, u >> 32);
  	be32enc(p + 4, u & 0xffffffff);
***************
*** 171,177 ****
  static __inline void
  le16enc(void *pp, uint16_t u)
  {
! 	unsigned char *p = pp;
  
  	p[0] = u & 0xff;
  	p[1] = (u >> 8) & 0xff;
--- 171,177 ----
  static __inline void
  le16enc(void *pp, uint16_t u)
  {
! 	unsigned char *p = (unsigned char *) pp;
  
  	p[0] = u & 0xff;
  	p[1] = (u >> 8) & 0xff;
***************
*** 180,186 ****
  static __inline void
  le32enc(void *pp, uint32_t u)
  {
! 	unsigned char *p = pp;
  
  	p[0] = u & 0xff;
  	p[1] = (u >> 8) & 0xff;
--- 180,186 ----
  static __inline void
  le32enc(void *pp, uint32_t u)
  {
! 	unsigned char *p = (unsigned char *) pp;
  
  	p[0] = u & 0xff;
  	p[1] = (u >> 8) & 0xff;
***************
*** 191,197 ****
  static __inline void
  le64enc(void *pp, uint64_t u)
  {
! 	unsigned char *p = pp;
  
  	le32enc(p, u & 0xffffffff);
  	le32enc(p + 4, u >> 32);
--- 191,197 ----
  static __inline void
  le64enc(void *pp, uint64_t u)
  {
! 	unsigned char *p = (unsigned char *) pp;
  
  	le32enc(p, u & 0xffffffff);
  	le32enc(p + 4, u >> 32);
