Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
PureOS
Packages
qemu
Commits
65f3bb3d
Commit
65f3bb3d
authored
Oct 06, 2011
by
Juan Quintela
Browse files
savevm: define qemu_get_byte() using qemu_peek_byte()
Signed-off-by: Juan Quintela<quintela@redhat.com>
parent
b9ce1454
Changes
1
Hide whitespace changes
Inline
Side-by-side
savevm.c
View file @
65f3bb3d
...
...
@@ -578,17 +578,14 @@ static int qemu_peek_byte(QEMUFile *f)
int
qemu_get_byte
(
QEMUFile
*
f
)
{
if
(
f
->
is_write
)
{
abort
();
}
int
result
;
if
(
f
->
buf_index
>=
f
->
buf_size
)
{
qemu_fill_buffer
(
f
);
if
(
f
->
buf_index
>=
f
->
buf_size
)
{
return
0
;
}
result
=
qemu_peek_byte
(
f
);
if
(
f
->
buf_index
<
f
->
buf_size
)
{
f
->
buf_index
++
;
}
return
f
->
buf
[
f
->
buf_index
++
]
;
return
result
;
}
int64_t
qemu_ftell
(
QEMUFile
*
f
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment