]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: Restore support for older gcc versions
authorBart Van Assche <bvanassche@acm.org>
Mon, 24 Jun 2019 17:41:37 +0000 (10:41 -0700)
committerBart Van Assche <bvanassche@acm.org>
Mon, 24 Jun 2019 18:27:11 +0000 (11:27 -0700)
commit673423892af17233d8dfb23b2ad9c74a917fb528
tree7b2603745ba23553f73d3a21fac9c7aa9147fca9
parent2e23df2b64a89ce6c9764592c3f59fe67995ef2d
nvme-cli: Restore support for older gcc versions

Older versions of gcc do not support initializing another than the first
member of a union in an initializer. Rewrite some code such that support
for older gcc versions is restored.

Fixes: 301e263c34e8 ("nvme-cli: Rework the code for getting and setting NVMf properties")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
nvme-ioctl.c