examples: silent some compilation warnings.

This commit is contained in:
Romuald Conty 2011-02-28 09:47:31 +00:00
parent dbe59f83d9
commit 4384d27f3e
11 changed files with 98 additions and 56 deletions

View file

@ -132,7 +132,7 @@ int main(int argc, const char* argv[])
while (isspace(cmd[offset])) {
offset++;
}
sscanf(cmd+offset, "%u", &s);
sscanf(cmd+offset, "%d", &s);
printf("Pause for %i secs\n", s);
if (s>0) {
sleep(s);
@ -167,7 +167,7 @@ int main(int argc, const char* argv[])
printf("Tx: ");
print_hex((byte_t*)abtTx+1,szTx-1);
if (!pn53x_transceive (pnd, abtTx, szTx, abtRx, &szRx)) {
if (!pn53x_transceive (pnd, abtTx, szTx, abtRx, &szRx, false)) {
free(cmd);
nfc_perror (pnd, "Rx");
continue;