fix warnings on linux

msleep instead of sleep
need unistd.h
This commit is contained in:
marshmellow42 2017-07-05 12:30:38 -04:00 committed by GitHub
commit f10070086a

View file

@ -19,6 +19,8 @@
#ifdef _WIN32 #ifdef _WIN32
# define unlink(x) # define unlink(x)
#else
# include <unistd.h>
#endif #endif
static serial_port sp; static serial_port sp;
@ -128,7 +130,7 @@ int main(int argc, char **argv)
fprintf(stderr,"Waiting for Proxmark to appear on %s",serial_port_name); fprintf(stderr,"Waiting for Proxmark to appear on %s",serial_port_name);
do { do {
sleep(1); msleep(1000);
fprintf(stderr, "."); fprintf(stderr, ".");
} while (!OpenProxmark(0)); } while (!OpenProxmark(0));
fprintf(stderr," Found.\n"); fprintf(stderr," Found.\n");