From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVEtk-0002oV-2m for qemu-devel@nongnu.org; Fri, 10 Jun 2011 23:30:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVEti-0000P6-O3 for qemu-devel@nongnu.org; Fri, 10 Jun 2011 23:30:07 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:58041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVEti-0000KO-Bp for qemu-devel@nongnu.org; Fri, 10 Jun 2011 23:30:06 -0400 Received: by mail-vw0-f45.google.com with SMTP id 17so3032615vws.4 for ; Fri, 10 Jun 2011 20:30:06 -0700 (PDT) MIME-Version: 1.0 From: Devin Nakamura Date: Fri, 10 Jun 2011 23:29:46 -0400 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Subject: [Qemu-devel] [PATCH 2/2] qemu-io: Fix if scoping bug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Fix a bug caused by lack of braces in if statement Signed-off-by: Devin Nakamura --- qemu-io.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index 53adb76..1c4f684 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -433,12 +433,12 @@ static int read_f(int argc, char **argv) return 0; } - if (!pflag) + if (!pflag){ if (offset & 0x1ff) { printf("offset %" PRId64 " is not sector aligned\n", offset); return 0; - + } if (count & 0x1ff) { printf("count %d is not sector aligned\n", count); -- 1.7.6.rc1