qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3] qemu-io: Add generic function for reinitializing optind.
@ 2019-01-09 13:23 Richard W.M. Jones
  2019-01-09 13:23 ` Richard W.M. Jones
  2019-01-09 13:44 ` Daniel P. Berrangé
  0 siblings, 2 replies; 6+ messages in thread
From: Richard W.M. Jones @ 2019-01-09 13:23 UTC (permalink / raw)
  To: eblake; +Cc: kwolf, mreitz, qemu-block, qemu-devel

How about this one?  Add a generic osdep function for reinitializing
optind, which does optreset on FreeBSD (but is identical on all other
OSes).  Use it from qemu-io and qemu-img.

I have tested this on Linux, FreeBSD and OpenBSD.

checkpatch complains:

WARNING: Block comments use a leading /* on a separate line
#69: FILE: include/qemu/osdep.h:591:
+/**

WARNING: architecture specific defines should be avoided
#78: FILE: include/qemu/osdep.h:600:
+#ifdef __FreeBSD__

total: 0 errors, 2 warnings, 44 lines checked

but as far as I'm aware I've followed the correct formatting and
guidelines.

Rich.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-09 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-09 13:23 [Qemu-devel] [PATCH v3] qemu-io: Add generic function for reinitializing optind Richard W.M. Jones
2019-01-09 13:23 ` Richard W.M. Jones
2019-01-09 13:44 ` Daniel P. Berrangé
2019-01-09 14:14   ` Richard W.M. Jones
2019-01-09 14:19     ` Daniel P. Berrangé
2019-01-09 14:53   ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).