Removed old os_strcmp function

This commit is contained in:
Alexandre Paillier
2022-03-09 10:15:51 +01:00
parent 7e1c8b14d4
commit fed91e2261

View File

@@ -6,11 +6,6 @@
#define ZERO(x) memset(&x, 0, sizeof(x))
static int os_strcmp(const char* s1, const char* s2) {
size_t size = strlen(s1) + 1;
return memcmp(s1, s2, size);
}
int handle_check_address(check_address_parameters_t* params, chain_config_t* chain_config) {
PRINTF("Params on the address %d\n", (unsigned int) params);
PRINTF("Address to check %s\n", params->address_to_check);
@@ -69,7 +64,7 @@ int handle_check_address(check_address_parameters_t* params, chain_config_t* cha
offset_0x = 2;
}
if (os_strcmp(locals_union1.address, params->address_to_check + offset_0x) != 0) {
if (strcmp(locals_union1.address, params->address_to_check + offset_0x) != 0) {
PRINTF("Addresses don't match\n");
return 0;
}