diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2011-02-01 15:53:23 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-03 15:35:48 +0200 |
commit | cda727132de3dc18a540795481a314582b41a664 (patch) | |
tree | 83f54fa0ed99d3aa9e349f720ef796737a946355 /ui | |
parent | 747260898fb23bda2cd76ee8a38ef1298c8a78bd (diff) | |
download | qemu-cda727132de3dc18a540795481a314582b41a664.tar.gz qemu-cda727132de3dc18a540795481a314582b41a664.tar.bz2 qemu-cda727132de3dc18a540795481a314582b41a664.zip |
Make spice dummy functions inline to fix calls not checking return values
qemu_spice_set_passwd() and qemu_spice_set_pw_expire() dummy functions
needs to be inline, in order to handle the case where they are called
without checking the return value.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qemu-spice.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ui/qemu-spice.h b/ui/qemu-spice.h index 916e5dce21..3c6f1fe419 100644 --- a/ui/qemu-spice.h +++ b/ui/qemu-spice.h @@ -47,8 +47,16 @@ CharDriverState *qemu_chr_open_spice(QemuOpts *opts); #else /* CONFIG_SPICE */ #define using_spice 0 -#define qemu_spice_set_passwd(_p, _f1, _f2) (-1) -#define qemu_spice_set_pw_expire(_e) (-1) +static inline int qemu_spice_set_passwd(const char *passwd, + bool fail_if_connected, + bool disconnect_if_connected) +{ + return -1; +} +static inline int qemu_spice_set_pw_expire(time_t expires) +{ + return -1; +} static inline int qemu_spice_migrate_info(const char *h, int p, int t, const char *s) { return -1; } |