From aa81a8d3f11255c86b1de9e77c65ce700fb3a79e Mon Sep 17 00:00:00 2001 From: bushing Date: Tue, 22 Dec 2009 12:44:38 +0000 Subject: [PATCH] rename ReceiveCommandP -> ReceiveCommandPoll for consistency --- client/cli.c | 2 +- client/proxmark3.c | 2 +- client/snooper.c | 2 +- client/usb.c | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/cli.c b/client/cli.c index 9863b898..f6162227 100644 --- a/client/cli.c +++ b/client/cli.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) ReceiveCommand(&cmdbuf); HANDLE_ERROR for (i=0; i<5; i++) { - ReceiveCommandP(&cmdbuf); + ReceiveCommandPoll(&cmdbuf); } HANDLE_ERROR diff --git a/client/proxmark3.c b/client/proxmark3.c index 4c6076bc..280d07f9 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -26,7 +26,7 @@ static void *usb_receiver(void *targ) { UsbCommand cmdbuf; while(arg->run) { - if (ReceiveCommandP(&cmdbuf) > 0) { + if (ReceiveCommandPoll(&cmdbuf)) { int i; for (i=0; i 0; } void ReceiveCommand(UsbCommand *c) { - while(ReceiveCommandP(c)<0) {} + while(!ReceiveCommandPoll(c)) {} } usb_dev_handle* findProxmark(int verbose, unsigned int *iface) { -- 2.39.2