diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-08-01 02:37:32 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-08-03 04:21:23 +0200 |
commit | 4ae678eaf8a48d548308a57e23df38c7afca8a0e (patch) | |
tree | 9f210ff77c324340d7164f02577f608b28a8a310 /rose/rsusers.sh | |
parent | dc615514c9bcc1895d7d2082fce7d3add084c90c (diff) |
rip98d: Perform a crapectomy on hex2intrev().
hex2intrev is a hilariously complicated function which combine parsing
a hexadecimal integer in network byte order and swapping the result to
host byte order.
Move the endianess swapping to the caller which allows to remove double
endianess swapping. Now that hex2intrev no longer deals with byte
order rename it to hex2int and replace its implementation with a simple
invocation of strtoul.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'rose/rsusers.sh')
0 files changed, 0 insertions, 0 deletions