Received: from eggs.gnu.org ([140.186.70.92]:56209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnQOO-0001Cd-5m for qemu-devel@nongnu.org; Wed, 18 Jan 2012 02:57:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnQOI-0004iP-Na for qemu-devel@nongnu.org; Wed, 18 Jan 2012 02:57:12 -0500 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:42454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnQOI-0004iE-Dt for qemu-devel@nongnu.org; Wed, 18 Jan 2012 02:57:06 -0500 Received: from csmailer.cs.nctu.edu.tw (localhost [127.0.0.1]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id BA9E73E8 for ; Wed, 18 Jan 2012 15:54:08 +0800 (CST) Received: from alumni.cs.nctu.edu.tw (alumni.cs.nctu.edu.tw [140.113.235.116]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 92BEA3E7 for ; Wed, 18 Jan 2012 15:54:08 +0800 (CST) Received: (from chenwj@localhost) by alumni.cs.nctu.edu.tw (8.14.4/8.14.4/Submit) id q0I7v4Ra031218 for qemu-devel@nongnu.org; Wed, 18 Jan 2012 15:57:04 +0800 (CST) (envelope-from chenwj) Date: Wed, 18 Jan 2012 15:57:04 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20120118075703.GA28921@cs.nctu.edu.tw> References: <4F0BEBE8.6030708@gmail.com> <4F15E00C.70207@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4F15E00C.70207@gmail.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Fwd: envlist_setenv... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tue, Jan 17, 2012 at 09:54:36PM +0100, Davide wrote: >=20 > What does this loop in main? >=20 > for (wrk =3D environ; *wrk !=3D NULL; wrk++) { > (void) envlist_setenv(envlist, *wrk); > } Seems the return value (error code) of envlist_setenv is ignored here..= .=20 --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj