diff options
author | John Levon <john.levon@nutanix.com> | 2020-11-24 21:18:13 +0000 |
---|---|---|
committer | John Levon <levon@movementarian.org> | 2020-11-24 21:24:40 +0000 |
commit | 379d01ada982692422009e1023af20b79c36190f (patch) | |
tree | 49f9a7fa6c09a64cbc890c45d7a37df2124a9245 /samples | |
parent | 84a57efa837452d1812c28e3799e8660e384a840 (diff) | |
download | libvfio-user-379d01ada982692422009e1023af20b79c36190f.zip libvfio-user-379d01ada982692422009e1023af20b79c36190f.tar.gz libvfio-user-379d01ada982692422009e1023af20b79c36190f.tar.bz2 |
fix compile with gcc 4.8.5
Diffstat (limited to 'samples')
-rw-r--r-- | samples/gpio-pci-idio-16.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c index 7dd8ec6..419783f 100644 --- a/samples/gpio-pci-idio-16.c +++ b/samples/gpio-pci-idio-16.c @@ -73,11 +73,11 @@ main(int argc, char *argv[]) int ret; bool verbose = false; char opt; - struct sigaction act = {.sa_handler = _sa_handler}; + struct sigaction act = { .sa_handler = _sa_handler }; lm_ctx_t *lm_ctx; - lm_pci_hdr_id_t id = {.vid = 0x494F, .did = 0x0DC8}; - lm_pci_hdr_ss_t ss = {0}; - lm_pci_hdr_cc_t cc = {0}; + lm_pci_hdr_id_t id = { .vid = 0x494F, .did = 0x0DC8 }; + lm_pci_hdr_ss_t ss = { .vid = 0x0, .sid = 0x0 }; + lm_pci_hdr_cc_t cc = { { 0 } }; while ((opt = getopt(argc, argv, "v")) != -1) { switch (opt) { |