replace address parameter checks with new helper functions

This commit is contained in:
Stefan Wahren
2012-12-31 13:44:03 +01:00
parent 898ee57d41
commit e248d6e421
8 changed files with 8 additions and 8 deletions

View File

@ -53,7 +53,7 @@ main(int argc, char **argv)
return 1;
}
if (strlen(addr_mask) != 16)
if (mbus_is_secondary_address(addr_mask) == 0)
{
fprintf(stderr, "Misformatted secondary address mask. Must be 16 character HEX number.\n");
return 1;