From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsT4c-0007Jt-RS for qemu-devel@nongnu.org; Wed, 13 May 2015 05:35:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsT4Y-0004Ew-2y for qemu-devel@nongnu.org; Wed, 13 May 2015 05:35:30 -0400 Date: Wed, 13 May 2015 11:35:23 +0200 From: Kevin Wolf Message-ID: <20150513093523.GF4263@noname.str.redhat.com> References: <1431443456-21605-1-git-send-email-eblake@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431443456-21605-1-git-send-email-eblake@redhat.com> Subject: Re: [Qemu-devel] [PATCH] qemu-io: Use getopt() correctly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, qemu-block@nongnu.org Am 12.05.2015 um 17:10 hat Eric Blake geschrieben: > POSIX says getopt() returns -1 on completion. While Linux happens > to define EOF as -1, this definition is not required by POSIX, and > there may be platforms where checking for EOF instead of -1 would > lead to an infinite loop. > > Signed-off-by: Eric Blake Thanks, applied to my block branch. Kevin