Remove unused method le32toh.

The version in PM3 conflicts with a declaration in
/usr/include/x86_64-linux-gnu/bits/waitstatus.h, which can cause build
/failures in obscure circumstances.
This commit is contained in:
Michael Farrell 2018-09-08 23:54:16 +10:00
commit bed3db8f1d
2 changed files with 0 additions and 4 deletions

View file

@ -721,9 +721,6 @@ void xor(unsigned char *dst, unsigned char *src, size_t len) {
int32_t le24toh (uint8_t data[3]) {
return (data[2] << 16) | (data[1] << 8) | data[0];
}
uint32_t le32toh (uint8_t *data) {
return (uint32_t)( (data[3]<<24) | (data[2]<<16) | (data[1]<<8) | data[0]);
}
// RotateLeft - Ultralight, Desfire, works on byte level
// 00-01-02 >> 01-02-00

View file

@ -90,7 +90,6 @@ extern void wiegand_add_parity(uint8_t *target, uint8_t *source, uint8_t length)
extern void xor(unsigned char *dst, unsigned char *src, size_t len);
extern int32_t le24toh(uint8_t data[3]);
extern uint32_t le32toh (uint8_t *data);
extern void rol(uint8_t *data, const size_t len);
extern void clean_ascii(unsigned char *buf, size_t len);