From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asbkc-0003HX-Fx for qemu-devel@nongnu.org; Tue, 19 Apr 2016 15:55:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asbkb-0007es-OC for qemu-devel@nongnu.org; Tue, 19 Apr 2016 15:55:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asbkb-0007ek-J2 for qemu-devel@nongnu.org; Tue, 19 Apr 2016 15:55:57 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 31AE9C05E16D for ; Tue, 19 Apr 2016 19:55:57 +0000 (UTC) From: Eduardo Habkost Date: Tue, 19 Apr 2016 16:55:28 -0300 Message-Id: <1461095728-22055-13-git-send-email-ehabkost@redhat.com> In-Reply-To: <1461095728-22055-1-git-send-email-ehabkost@redhat.com> References: <1461095728-22055-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH for-2.7 v3 12/12] vl: Make display_remote a local variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Marcel Apfelbaum The variable is used only inside main(), so it can be local. Signed-off-by: Eduardo Habkost --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index cc9cf65..d09b7fb 100644 --- a/vl.c +++ b/vl.c @@ -129,7 +129,6 @@ const char *bios_name = NULL; enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB; int request_opengl = -1; int display_opengl; -static int display_remote; const char* keyboard_layout = NULL; ram_addr_t ram_size; const char *mem_path = NULL; @@ -2970,6 +2969,7 @@ int main(int argc, char **argv, char **envp) bool userconfig = true; bool nographic = false; DisplayType display_type = DT_DEFAULT; + int display_remote = 0; const char *log_mask = NULL; const char *log_file = NULL; char *trace_file = NULL; -- 2.1.0