Add reminders to bytes2apdu style code blocks.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5370 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2011-04-19 10:51:27 +00:00
parent 1932ce861f
commit 8f0ba374f3
3 changed files with 4 additions and 0 deletions

View File

@ -1321,6 +1321,7 @@ static int do_apdu(int argc, char **argv)
}
len0 = len;
/* TODO: move this to apdu.c as bytes2apdu or similar. See #237 */
memset(&apdu, 0, sizeof(apdu));
p = buf;
apdu.cla = *p++;

View File

@ -507,6 +507,8 @@ static int send_apdu(void)
}
len = len0;
p = buf;
/* TODO: move this to apdu.c as bytes2apdu or similar. See #237 */
memset(&apdu, 0, sizeof(apdu));
apdu.cla = *p++;
apdu.ins = *p++;

View File

@ -548,6 +548,7 @@ static int send_apdu(void)
}
len = len0;
p = buf;
/* TODO: move this to apdu.c as bytes2apdu or similar. See #237 */
memset(&apdu, 0, sizeof(apdu));
apdu.cla = *p++;
apdu.ins = *p++;