|
| From: | Anthony Liguori |
| Subject: | Re: [Qemu-devel] [6215] snapshot subcommand for qemu-img (Kevin Wolf) |
| Date: | Tue, 13 Jan 2009 13:02:00 -0600 |
| User-agent: | Thunderbird 2.0.0.19 (X11/20090105) |
Anthony Liguori wrote:
+static void img_snapshot(int argc, char **argv)
+{
+ BlockDriverState *bs;
+ QEMUSnapshotInfo sn;
+ char *filename, *snapshot_name = NULL;
+ char c;
+ int ret;
+ int action = 0;
+ qemu_timeval tv;
+
+ /* Parse commandline parameters */
+ for(;;) {
+ c = getopt(argc, argv, "la:c:d:h");
+ if (c == -1)
+ break;
char's are not always signed so this code is incorrect. You should use an int instead. Can you send another patch fixing this please?
Regards, Anthony Liguori
| [Prev in Thread] | Current Thread | [Next in Thread] |