2013/3/2 Xiaofan Chen <xiaof...@gmail.com>:
> On Fri, Jan 11, 2013 at 8:46 AM, Wander Lairson Costa
> <wander.lair...@gmail.com> wrote:
>> I am trying to do a isochronous loop transfer, I can write the data
>> but I am getting an error when trying to read it.
>>
>> The successfully transfer is the write one, the failed one is the read
>> request. Source code for my test app can be found at [1]. The firmware
>> code [2] is a customized version of the libusbK benchmark firmware. I
>> am not sure if my app or my firmware code is wrong.
>>
>> Thanks in advance.
>>
>> [1] https://github.com/walac/isochronous
>>
>> [2] https://github.com/walac/bmfw
>
> I am trying to build the isochronous test program at [1] under Mac OS
> X but it failed. How to sort out the issue with strchrnul()?
>
> mymacmini:isochronous xiaofanc$ make
> cc -g3 -Wall -Wextra  -std=c99 -D_GNU_SOURCE=1 -D
> _POSIX_C_SOURCE=199309L
> -I/usr/local/Cellar/libusb/1.0.9/include/libusb-1.0    -c -o iso.o
> iso.c
> iso.c:23:10: warning: implicit declaration of function 'strchrnul' is invalid 
> in
>       C99 [-Wimplicit-function-declaration]
>         *strchrnul(fn, '(') = '\0';
>          ^
> iso.c:23:9: error: indirection requires pointer operand ('int' invalid)
>         *strchrnul(fn, '(') = '\0';
>         ^~~~~~~~~~~~~~~~~~~
> iso.c:30:42: warning: implicit declaration of function 'basename' is invalid 
> in
>       C99 [-Wimplicit-function-declaration]
>         fprintf(stderr, "%s(%zu): %s\n", basename(file), line,...
>                                          ^
> iso.c:30:42: warning: format specifies type 'char *' but the argument has type
>       'int' [-Wformat]
>         fprintf(stderr, "%s(%zu): %s\n", basename(file), line,...
>                          ~~              ^~~~~~~~~~~~~~
>                          %d
> 3 warnings and 1 error generated.
> make: *** [iso.o] Error 1
>
>
>

I just commited a patch that should fix this. Please pull and trying
to build again.

-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to