From patchwork Wed Dec 11 09:42:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 11284589 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4D62914BD for ; Wed, 11 Dec 2019 09:42:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 23C7021556 for ; Wed, 11 Dec 2019 09:42:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Voj3TF2I" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728624AbfLKJmc (ORCPT ); Wed, 11 Dec 2019 04:42:32 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:25231 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727888AbfLKJmc (ORCPT ); Wed, 11 Dec 2019 04:42:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576057351; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r9bnY0jHRcMWSnryCKwgblqBO5XHvZ1/TSPstgKyozo=; b=Voj3TF2IG1Pqe6gaYmK2aVi4cyPmBSpU9vEcgWtfdX1f7fTtFOuAzLy0oMtXciggrV2+/d yyRP4EjGGfYzicxdTCH+1ZUXKNI2BVb1sJTaoXJgbFBQNedzzQQat9vQ6QNz8sUHkDmVcL VUThAKT4Wll2k26fG7Lz932O2qPcwcs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-78-0b-UkEbQOGW9renaceHYrQ-1; Wed, 11 Dec 2019 04:42:29 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D737A107BAA9 for ; Wed, 11 Dec 2019 09:42:28 +0000 (UTC) Received: from thuth.com (ovpn-117-11.ams2.redhat.com [10.36.117.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id DAA0963629; Wed, 11 Dec 2019 09:42:27 +0000 (UTC) From: Thomas Huth To: Paolo Bonzini , kvm@vger.kernel.org Cc: Drew Jones Subject: [kvm-unit-tests PATCH 2/4] x86: Fix coding style in setjmp.c Date: Wed, 11 Dec 2019 10:42:19 +0100 Message-Id: <20191211094221.7030-3-thuth@redhat.com> In-Reply-To: <20191211094221.7030-1-thuth@redhat.com> References: <20191211094221.7030-1-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: 0b-UkEbQOGW9renaceHYrQ-1 X-Mimecast-Spam-Score: 0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org No functional change, just use tabs for indentation. Signed-off-by: Thomas Huth --- x86/setjmp.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/x86/setjmp.c b/x86/setjmp.c index 1874944..1a848b4 100644 --- a/x86/setjmp.c +++ b/x86/setjmp.c @@ -9,18 +9,18 @@ static const int expected[] = { int main(void) { - volatile int index = 0; - jmp_buf j; - int i; + volatile int index = 0; + jmp_buf j; + int i; - i = setjmp(j); - if (expected[index] != i) { - printf("FAIL: actual %d / expected %d\n", i, expected[index]); - return -1; - } - index++; - if (i + 1 < NUM_LONGJMPS) - longjmp(j, i + 1); + i = setjmp(j); + if (expected[index] != i) { + printf("FAIL: actual %d / expected %d\n", i, expected[index]); + return -1; + } + index++; + if (i + 1 < NUM_LONGJMPS) + longjmp(j, i + 1); - return 0; + return 0; }