From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNZyh-0007Zt-Fv for qemu-devel@nongnu.org; Thu, 15 Jan 2009 16:42:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNZyg-0007Z3-Nm for qemu-devel@nongnu.org; Thu, 15 Jan 2009 16:42:15 -0500 Received: from [199.232.76.173] (port=37494 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNZyg-0007Yo-Fe for qemu-devel@nongnu.org; Thu, 15 Jan 2009 16:42:14 -0500 Received: from savannah.gnu.org ([199.232.41.3]:47458 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNZyf-0000Yg-VP for qemu-devel@nongnu.org; Thu, 15 Jan 2009 16:42:14 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LNZyf-0007zS-62 for qemu-devel@nongnu.org; Thu, 15 Jan 2009 21:42:13 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LNZye-0007zO-VR for qemu-devel@nongnu.org; Thu, 15 Jan 2009 21:42:13 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Thu, 15 Jan 2009 21:42:12 +0000 Subject: [Qemu-devel] [6331] qemu-img: Fix type of getopt return value (Kevin Wolf) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6331 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6331 Author: aliguori Date: 2009-01-15 21:42:12 +0000 (Thu, 15 Jan 2009) Log Message: ----------- qemu-img: Fix type of getopt return value (Kevin Wolf) getopt doesn't return a char but an int. Signed-off-by: Kevin Wolf Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/qemu-img.c Modified: trunk/qemu-img.c =================================================================== --- trunk/qemu-img.c 2009-01-15 21:39:41 UTC (rev 6330) +++ trunk/qemu-img.c 2009-01-15 21:42:12 UTC (rev 6331) @@ -751,8 +751,7 @@ BlockDriverState *bs; QEMUSnapshotInfo sn; char *filename, *snapshot_name = NULL; - char c; - int ret; + int c, ret; int action = 0; qemu_timeval tv;