8f2b233837
This patch fixes some bugs on big-endian systems. - Use temp variables for etohs() and etohl() at function calls to avoid multiple function calls for one value. - Fix and add use of etohs(), etohl(), htoes() and htoel(). - Fix use of 32bit values in 64bit variables.