Received: from eggs.gnu.org ([2001:4830:134:3::10]:50298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsCCo-0000pp-7O for qemu-devel@nongnu.org; Tue, 12 May 2015 11:34:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsCCk-0005DW-TV for qemu-devel@nongnu.org; Tue, 12 May 2015 11:34:50 -0400 From: Alberto Garcia In-Reply-To: <1431443456-21605-1-git-send-email-eblake@redhat.com> References: <1431443456-21605-1-git-send-email-eblake@redhat.com> Date: Tue, 12 May 2015 17:33:39 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] qemu-io: Use getopt() correctly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org, qemu-trivial@nongnu.org Cc: qemu-block@nongnu.org On Tue 12 May 2015 05:10:56 PM CEST, Eric Blake wrote: > 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 Reviewed-by: Alberto Garcia Berto