Revision d5a7b38f monitor.c

b/monitor.c
1148 1148
/**
1149 1149
 * do_cont(): Resume emulation.
1150 1150
 */
1151
static void do_cont(Monitor *mon, const QDict *qdict, QObject **ret_data)
1151
static int do_cont(Monitor *mon, const QDict *qdict, QObject **ret_data)
1152 1152
{
1153 1153
    struct bdrv_iterate_context context = { mon, 0 };
1154 1154

  
1155 1155
    bdrv_iterate(encrypted_bdrv_it, &context);
1156 1156
    /* only resume the vm if all keys are set and valid */
1157
    if (!context.err)
1157
    if (!context.err) {
1158 1158
        vm_start();
1159
        return 0;
1160
    } else {
1161
        return -1;
1162
    }
1159 1163
}
1160 1164

  
1161 1165
static void bdrv_key_cb(void *opaque, int err)

Also available in: Unified diff