projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54028d7
)
rng-random: use error_setg_file_open()
author
Luiz Capitulino
<lcapitulino@redhat.com>
Fri, 7 Jun 2013 18:28:02 +0000
(14:28 -0400)
committer
Luiz Capitulino
<lcapitulino@redhat.com>
Mon, 17 Jun 2013 15:01:14 +0000
(11:01 -0400)
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Acked-by: Kevin Wolf <kwolf@redhat.com>
backends/rng-random.c
patch
|
blob
|
history
diff --git
a/backends/rng-random.c
b/backends/rng-random.c
index 830360c7808ee29dc46a03423b5bca3599e0efe1..68dfc8a9c60fc0db48e3c531405ff7c2cc20894c 100644
(file)
--- a/
backends/rng-random.c
+++ b/
backends/rng-random.c
@@
-78,9
+78,8
@@
static void rng_random_opened(RngBackend *b, Error **errp)
"filename", "a valid filename");
} else {
s->fd = qemu_open(s->filename, O_RDONLY | O_NONBLOCK);
-
if (s->fd == -1) {
- error_set
(errp, QERR_OPEN_FILE_FAILED
, s->filename);
+ error_set
g_file_open(errp, errno
, s->filename);
}
}
}