From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mt3FL-0005MS-CF for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt3FH-0005IK-4w for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:47 -0400 Received: from [199.232.76.173] (port=44800 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt3FG-0005I0-FS for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:42 -0400 Received: from mx20.gnu.org ([199.232.41.8]:49010) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mt3FF-0006P6-Tt for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mt3FF-0005Oj-5A for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:41 -0400 Date: Wed, 30 Sep 2009 19:43:38 +0200 From: "Michael S. Tsirkin" Message-ID: <20090930174338.GC1399@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCH 02/13] elfload: fix coding style nit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org Put space between = and * when dereferencing a pointer, to avoid confusion with old-style "*=" Signed-off-by: Michael S. Tsirkin --- bsd-user/elfload.c | 2 +- linux-user/elfload.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 19981f0..33ddcc4 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/elfload.c @@ -1268,7 +1268,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, } if (retval >= 0) { interp_ex = *((struct exec *) bprm->buf); /* aout exec-header */ - interp_elf_ex=*((struct elfhdr *) bprm->buf); /* elf exec-header */ + interp_elf_ex = *((struct elfhdr *) bprm->buf); /* elf exec-header */ } if (retval < 0) { perror("load_elf_binary3"); diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 7c8e771..07277a6 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1476,7 +1476,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, } if (retval >= 0) { interp_ex = *((struct exec *) bprm->buf); /* aout exec-header */ - interp_elf_ex=*((struct elfhdr *) bprm->buf); /* elf exec-header */ + interp_elf_ex = *((struct elfhdr *) bprm->buf); /* elf exec-header */ } if (retval < 0) { perror("load_elf_binary3"); -- 1.6.5.rc2