OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5dd987
)
qga: use ARRAY_SIZE macro
author
Philippe Mathieu-Daudé
<f4bug@amsat.org>
Tue, 18 Jul 2017 06:09:57 +0000
(
03:09
-0300)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Sat, 10 Feb 2018 07:42:40 +0000
(10:42 +0300)
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
qga/commands-posix.c
patch
|
blob
|
history
diff --git
a/qga/commands-posix.c
b/qga/commands-posix.c
index
88807f3
..
9670614
100644
(file)
--- a/
qga/commands-posix.c
+++ b/
qga/commands-posix.c
@@
-901,7
+901,7
@@
static void build_guest_fsinfo_for_real_device(char const *syspath,
if (p && sscanf(q, "%u", &host) == 1) {
has_host = true;
nhosts = build_hosts(syspath, p, has_ata, hosts,
-
sizeof(hosts) / sizeof(hosts[0]
), errp);
+
ARRAY_SIZE(hosts
), errp);
if (nhosts < 0) {
goto cleanup;
}