Re: [Qemu-devel] [PATCH] qemu-io: Reinitialize optind correctly before parsing inner command.

2019-01-02 Thread Eric Blake
On 12/30/18 12:09 PM, Richard W.M. Jones wrote: > On FreeBSD 11.2: > > $ ./qemu-io -f raw -c "aio_write 0 512" "nbd:localhost:10809" > Parsing error: non-numeric argument, or extraneous/unrecognized suffix -- > aio_write > > After main option parsing, we reinitialize optind so we can parse e

[Qemu-devel] [PATCH] qemu-io: Reinitialize optind correctly before parsing inner command.

2018-12-30 Thread Richard W.M. Jones
checkpatch says: WARNING: architecture specific defines should be avoided #60: FILE: qemu-io-cmds.c:117: +#ifdef __GNU_LIBRARY__ However I don't know a better way to fix this. Rich.

[Qemu-devel] [PATCH] qemu-io: Reinitialize optind correctly before parsing inner command.

2018-12-30 Thread Richard W.M. Jones
On FreeBSD 11.2: $ ./qemu-io -f raw -c "aio_write 0 512" "nbd:localhost:10809" Parsing error: non-numeric argument, or extraneous/unrecognized suffix -- aio_write After main option parsing, we reinitialize optind so we can parse each command. The error happens when parsing the aio_write com