summaryrefslogtreecommitdiffstats
path: root/util/id.c
diff options
context:
space:
mode:
authorPeter Maydell2016-01-29 18:49:55 +0100
committerPeter Maydell2016-02-04 18:01:04 +0100
commitaafd758410015e08b1aa8964d739ba8587ce58dc (patch)
treefcaa184bf2e2faa09111d7bfc40ee9257a8415f0 /util/id.c
parentbackends: Clean up includes (diff)
downloadqemu-aafd758410015e08b1aa8964d739ba8587ce58dc.tar.gz
qemu-aafd758410015e08b1aa8964d739ba8587ce58dc.tar.xz
qemu-aafd758410015e08b1aa8964d739ba8587ce58dc.zip
util: Clean up includes
Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1454089805-5470-6-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'util/id.c')
-rw-r--r--util/id.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/id.c b/util/id.c
index 7883fbec79..bbbadcc784 100644
--- a/util/id.c
+++ b/util/id.c
@@ -10,6 +10,7 @@
* or later. See the COPYING.LIB file in the top-level directory.
*/
+#include "qemu/osdep.h"
#include "qemu-common.h"
bool id_wellformed(const char *id)
/oslib-win32.c
@@ -438,10 +438,8 @@ static int poll_rest(gboolean poll_msgs, HANDLE *handles, gint nhandles,
if (timeout == 0 && nhandles > 1) {
/* Remove the handle that fired */
int i;
- if (ready < nhandles - 1) {
- for (i = ready - WAIT_OBJECT_0 + 1; i < nhandles; i++) {
- handles[i-1] = handles[i];
- }
+ for (i = ready - WAIT_OBJECT_0 + 1; i < nhandles; i++) {
+ handles[i-1] = handles[i];
}
nhandles--;
recursed_result = poll_rest(FALSE, handles, nhandles, fds, nfds, 0);