From: bushing Date: Tue, 22 Dec 2009 12:44:38 +0000 (+0000) Subject: rename ReceiveCommandP -> ReceiveCommandPoll for consistency X-Git-Tag: v1.0.0~439 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/aa81a8d3f11255c86b1de9e77c65ce700fb3a79e rename ReceiveCommandP -> ReceiveCommandPoll for consistency --- 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) {