/* Note: this code is harmless on little-endian machines.  */
static void byteReverse(unsigned char *buf, unsigned longs)
/* Note: this code is harmless on little-endian machines.  */
static void byteReverse(unsigned char *buf, unsigned longs)
{
	__u32 t;
	do {
		t = (__u32) ((unsigned) buf[3] << 8 | buf[2]) << 16 |
		    ((unsigned) buf[1] << 8 | buf[0]);
		*(__u32 *) buf = t;
		buf += 4;
	} while (--longs);
}