aboutsummaryrefslogtreecommitdiff
path: root/util/osdep.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2015-10-30 17:36:08 -0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-11-04 15:02:31 +0100
commit35c2c8dc8c0899882a8e0d349d93bd657772f1e7 (patch)
tree5d95179abdf3d07a7c29e76e251efe47cddf86f3 /util/osdep.c
parentde796d93f59d363409dfd9e186ccd64a21f92204 (diff)
downloadqemu-35c2c8dc8c0899882a8e0d349d93bd657772f1e7.zip
qemu-35c2c8dc8c0899882a8e0d349d93bd657772f1e7.tar.gz
qemu-35c2c8dc8c0899882a8e0d349d93bd657772f1e7.tar.bz2
osdep: Rename qemu_{get, set}_version() to qemu_{, set_}hw_version()
This makes the purpose of the function clearer: it is not about the version of QEMU that's running, but the version string exposed in the emulated hardware. Cc: Andrzej Zaborowski <balrogg@gmail.com> Cc: Peter Maydell <peter.maydell@linaro.org> Cc: John Snow <jsnow@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <1446233769-7892-3-git-send-email-ehabkost@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/osdep.c')
-rw-r--r--util/osdep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/osdep.c b/util/osdep.c
index 0092bb6..80c6bfe 100644
--- a/util/osdep.c
+++ b/util/osdep.c
@@ -52,7 +52,7 @@ extern int madvise(caddr_t, size_t, int);
static bool fips_enabled = false;
-static const char *qemu_version = QEMU_VERSION;
+static const char *hw_version = QEMU_VERSION;
int socket_set_cork(int fd, int v)
{
@@ -311,14 +311,14 @@ int qemu_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
return ret;
}
-void qemu_set_version(const char *version)
+void qemu_set_hw_version(const char *version)
{
- qemu_version = version;
+ hw_version = version;
}
-const char *qemu_get_version(void)
+const char *qemu_hw_version(void)
{
- return qemu_version;
+ return hw_version;
}
void fips_set_state(bool requested)