From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mt3GV-0006eZ-GJ for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt3GQ-0006Yk-Ob for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:59 -0400 Received: from [199.232.76.173] (port=36025 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt3GQ-0006YV-Ju for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33184) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mt3GP-0006fH-Vq for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:54 -0400 Date: Wed, 30 Sep 2009 19:44:53 +0200 From: "Michael S. Tsirkin" Message-ID: <20090930174453.GL1399@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCH 11/13] net: 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 - assigning a negative number to avoid confusion with old-style "-=" (which we also have, and need to be fixed). Signed-off-by: Michael S. Tsirkin --- net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net.c b/net.c index 3fdf1e6..2686f78 100644 --- a/net.c +++ b/net.c @@ -2044,7 +2044,7 @@ static NetSocketState *net_socket_fd_init(VLANState *vlan, const char *model, const char *name, int fd, int is_connected) { - int so_type=-1, optlen=sizeof(so_type); + int so_type = -1, optlen=sizeof(so_type); if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type, (socklen_t *)&optlen)< 0) { -- 1.6.5.rc2