]> sigrok.org Git - libsigrok.git/commit
asix-sigma: fix build time warnings
authorMike Frysinger <redacted>
Sat, 14 Jun 2014 02:44:40 +0000 (22:44 -0400)
committerBert Vermeulen <redacted>
Sun, 15 Jun 2014 08:45:39 +0000 (10:45 +0200)
commite15e5873b34f1a06ea2490ad7782870daa63f311
tree1cea543a62ec3e17668786a58866a08d1a214151
parenta4737997a2dcedaa616272013b2580246c3d32eb
asix-sigma: fix build time warnings

We need to include unistd.h for usleep():
hardware/asix-sigma/asix-sigma.c: In function 'sigma_fpga_init_bitbang':
hardware/asix-sigma/asix-sigma.c:450:3: warning: implicit declaration of function 'usleep'
   usleep(10000);

And we need to tweak the type of chunks_per_read to match dl_lines_total:
hardware/asix-sigma/asix-sigma.c: In function 'download_capture':
hardware/asix-sigma/asix-sigma.c:1161:39: warning: comparison between signed and unsigned integer expressions
   dl_lines_curr = MIN(chunks_per_read, dl_lines_total);
hardware/asix-sigma/asix-sigma.c