projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1201ad
)
linux-user/elfload: use QTAILQ_FOREACH instead of open-coding it
author
Emilio G. Cota
<cota@braap.org>
Mon, 27 Apr 2015 16:45:33 +0000
(12:45 -0400)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Thu, 30 Apr 2015 13:05:49 +0000
(16:05 +0300)
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/elfload.c
patch
|
blob
|
history
diff --git
a/linux-user/elfload.c
b/linux-user/elfload.c
index 399c02133733b55d91cb12f26c687f576410a8b8..0ba97062b75256f56c9c27a8c6f36f858337fe8e 100644
(file)
--- a/
linux-user/elfload.c
+++ b/
linux-user/elfload.c
@@
-2887,8
+2887,7
@@
static int write_note_info(struct elf_note_info *info, int fd)
return (error);
/* write prstatus for each thread */
- for (ets = info->thread_list.tqh_first; ets != NULL;
- ets = ets->ets_link.tqe_next) {
+ QTAILQ_FOREACH(ets, &info->thread_list, ets_link) {
if ((error = write_note(&ets->notes[0], fd)) != 0)
return (error);
}