From: malc <av1474@comtv.ru>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5712] Rename hz to hertz to keep AIX happy
Date: Wed, 12 Nov 2008 20:36:27 +0000 [thread overview]
Message-ID: <E1L0MRv-0003YS-T1@cvs.savannah.gnu.org> (raw)
Revision: 5712
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5712
Author: malc
Date: 2008-11-12 20:36:27 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
Rename hz to hertz to keep AIX happy
The issue was first noticed/addressed by Laurent Vivier in his QEMU on
AIX patches.
Modified Paths:
--------------
trunk/audio/audio.c
Modified: trunk/audio/audio.c
===================================================================
--- trunk/audio/audio.c 2008-11-12 20:36:24 UTC (rev 5711)
+++ trunk/audio/audio.c 2008-11-12 20:36:27 UTC (rev 5712)
@@ -54,7 +54,7 @@
struct fixed_settings fixed_out;
struct fixed_settings fixed_in;
union {
- int hz;
+ int hertz;
int64_t ticks;
} period;
int plive;
@@ -1520,7 +1520,7 @@
"Number of voices for ADC", NULL, 0},
/* Misc */
- {"TIMER_PERIOD", AUD_OPT_INT, &conf.period.hz,
+ {"TIMER_PERIOD", AUD_OPT_INT, &conf.period.hertz,
"Timer period in HZ (0 - use lowest possible)", NULL, 0},
{"PLIVE", AUD_OPT_BOOL, &conf.plive,
@@ -1781,16 +1781,16 @@
if (done) {
VMChangeStateEntry *e;
- if (conf.period.hz <= 0) {
- if (conf.period.hz < 0) {
+ if (conf.period.hertz <= 0) {
+ if (conf.period.hertz < 0) {
dolog ("warning: Timer period is negative - %d "
"treating as zero\n",
- conf.period.hz);
+ conf.period.hertz);
}
conf.period.ticks = 1;
}
else {
- conf.period.ticks = ticks_per_sec / conf.period.hz;
+ conf.period.ticks = ticks_per_sec / conf.period.hertz;
}
e = qemu_add_vm_change_state_handler (audio_vm_change_state_handler, s);
reply other threads:[~2008-11-12 20:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1L0MRv-0003YS-T1@cvs.savannah.gnu.org \
--to=av1474@comtv.ru \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).