public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jes Sorensen <jes@sgi.com>
To: Avi Kivity <avi@redhat.com>, "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: [patch] remove unnecessary bool from qemu-kvm.c
Date: Fri, 14 Nov 2008 16:45:51 +0100	[thread overview]
Message-ID: <491D9D2F.6080502@sgi.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]

Hi,

In support of Avi's preference for half line patches, I split out the
bool eliminating bits too.

Cheers,
Jes


[-- Attachment #2: 0008-qemu-no-bool-type.patch --]
[-- Type: text/plain, Size: 648 bytes --]

Replace unnecessary use of _Bool type with int.

Signed-off-by: Jes Sorensen <jes@sgi.com>

---
 qemu/qemu-kvm.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: kvm-userspace.git/qemu/qemu-kvm.c
===================================================================
--- kvm-userspace.git.orig/qemu/qemu-kvm.c
+++ kvm-userspace.git/qemu/qemu-kvm.c
@@ -28,7 +28,6 @@
 #include <sys/syscall.h>
 #include <sys/mman.h>
 
-#define bool _Bool
 #define false 0
 #define true 1
 
@@ -53,7 +52,7 @@
     struct qemu_kvm_work_item *next;
     void (*func)(void *data);
     void *data;
-    bool done;
+    int done;
 };
 
 struct vcpu_info {

             reply	other threads:[~2008-11-14 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-14 15:45 Jes Sorensen [this message]
2008-11-18 12:56 ` [patch] remove unnecessary bool from qemu-kvm.c Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=491D9D2F.6080502@sgi.com \
    --to=jes@sgi.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox