Received: from [140.186.70.92] (port=57834 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoCOJ-0004HU-Mr for qemu-devel@nongnu.org; Wed, 25 Aug 2010 05:35:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoCOI-0000dE-Jt for qemu-devel@nongnu.org; Wed, 25 Aug 2010 05:35:31 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:63569) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoCOI-0000b4-60 for qemu-devel@nongnu.org; Wed, 25 Aug 2010 05:35:30 -0400 From: Laurent Vivier Message-Id: <1358581.137647.1282728894522.JavaMail.servlet@pustefix160.kundenserver.de> Subject: Re: [Qemu-devel] [PATCH] Introduce NBD named exports. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Aug 2010 11:35:00 +0200 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kwolf@redhat.com, Laurent@vivier.eu Cc: qemu-devel@nongnu.org >Am 25.08.2010 00:21, schrieb Laurent Vivier: >> Le mardi 24 ao=C3=BBt 2010 =C3=A0 10:59 +0200, Kevin Wolf a =C3=A9crit : >[...] > >>> Maybe using strlen(EN_OPTSTR) would be clearer? At first I missed the >>> fact that sizeof includes the null byte, but maybe it's just me. >>=20 >> I think sizeof() is resolved at compile time whereas strlen() it is at >> runtime. For me, it is better, it is like to have a constant. > >gcc is smart enough to make strlen of a literal string a constant, too. >Besides, opening a connection isn't really performance critical. > Yes, you're right, I should check this before. So strlen() is better. Regards, Laurent --=20 --------------------- Laurent@vivier.eu --------------------- "Tout ce qui est impossible reste =C3=A0 accomplir" Jules Verne "Things are only impossible until they're not" Jean-Luc Picard