From patchwork Thu Apr 15 04:37:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: TeLeMan X-Patchwork-Id: 50215 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2C741B7CF5 for ; Thu, 15 Apr 2010 14:38:41 +1000 (EST) Received: from localhost ([127.0.0.1]:33758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2Gqc-0007n4-28 for incoming@patchwork.ozlabs.org; Thu, 15 Apr 2010 00:38:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2Gpz-0007mJ-I0 for qemu-devel@nongnu.org; Thu, 15 Apr 2010 00:37:59 -0400 Received: from [140.186.70.92] (port=50023 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2Gpy-0007ls-Fw for qemu-devel@nongnu.org; Thu, 15 Apr 2010 00:37:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2Gpx-0007c7-9M for qemu-devel@nongnu.org; Thu, 15 Apr 2010 00:37:58 -0400 Received: from mail-pw0-f45.google.com ([209.85.160.45]:61675) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2Gpx-0007by-4G for qemu-devel@nongnu.org; Thu, 15 Apr 2010 00:37:57 -0400 Received: by pwi6 with SMTP id 6so747363pwi.4 for ; Wed, 14 Apr 2010 21:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=nzVgU6LBMqN2ViFgx+PiYVN+W1FZ6OEd8UmzPt52zGM=; b=mYDNHos325Trav4NR+uImk9VtWsoI8QslrQoUJZCBJq8w5WLyx1EKubPFeScipf6bW 2qA8smDmZA35gFdT5Sxe3b9jTeu6rlL9PbrppUV2FCF9CEgDOY6vNafEuhkn2/C97oZw EY/KeQsCCHZlz4hJCRCmCzLWQYiV7evyCCglo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=M1EWeRf3M7MPbX8w7c2s2Bp6cF9jJbvBgwKFSeAUrZ0No8NEXApfDm1KGNtnxvCuyy 1dXDoqz/uFM4yzwgcX5vXw8YyW/5kTJfKMcSGB3yt62PoXPYiNt7MAjoV4MdHzCKLzMT sfEltHwD4FM+zWL3D0FylBlv1R3gs6MhRBMPU= MIME-Version: 1.0 Received: by 10.140.170.19 with HTTP; Wed, 14 Apr 2010 21:37:55 -0700 (PDT) Date: Thu, 15 Apr 2010 12:37:55 +0800 Received: by 10.141.23.16 with SMTP id a16mr8037196rvj.239.1271306275304; Wed, 14 Apr 2010 21:37:55 -0700 (PDT) Message-ID: From: TeLeMan To: qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH] fix chardev_init for win32 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org chardev_init functions use socket,so socket_init() shoud be placed at the front of chardev_init on win32. Signed-off-by: TeLeMan --- vl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 460e050..96835e2 100644 --- a/vl.c +++ b/vl.c @@ -3468,6 +3468,8 @@ int main(int argc, char **argv, char **envp) if (default_vga) vga_interface_type = VGA_CIRRUS; + socket_init(); + if (qemu_opts_foreach(&qemu_chardev_opts, chardev_init_func, NULL, 1) != 0) exit(1); @@ -3569,8 +3571,6 @@ int main(int argc, char **argv, char **envp) } configure_icount(icount_option); - socket_init(); - if (net_init_clients() < 0) { exit(1); }