static int
mful_getopt(struct rfid_protocol_handle *ph, int optname, void *optval,
- unsigned int optlen)
+ unsigned int *optlen)
{
int ret = -EINVAL;
u_int16_t atqa;
/* According to "Type Identification Procedure Rev. 1.3" */
rfid_layer2_getopt(l2h, RFID_OPT_14443A_ATQA,
- &atqa, atqa_len);
+ &atqa, &atqa_len);
if (atqa != 0x0044)
return NULL;