lib/helper.c
uint8_t *array_letoh(uint8_t *buffer, size_t length)
{
#if WORDS_BIGENDIAN
	/* Big-endian host needs conversion from little-endian IPMI */
	return array_byteswap(buffer, length);
#else
	/* Little-endian host doesn't need conversion from little-endian IPMI */
	(void)length; /* Silence the compiler */
	return buffer;
#endif
}
/* Convert data array from little-endian to host byte order */
Convert data array from little-endian to host byte order
Convert data array from little - endian to host byte order
uint8_t *array_letoh(uint8_t *buffer, size_t length)
{
#if WORDS_BIGENDIAN
	return array_byteswap(buffer, length);
#else
	(void)length; 
	return buffer;
#endif
}
uint8_t * array_letoh ( uint8_t * buffer , size_t length ) { #if WORDS_BIGENDIAN return array_byteswap ( buffer , length ) ; #else ( void ) length ; return buffer ; #endif }
Convert data array from little-endian to host byte order
Convert data array from little - endian to host byte order
/* Big-endian host needs conversion from little-endian IPMI */ /* Little-endian host doesn't need conversion from little-endian IPMI */ /* Silence the compiler */