Il 21/08/2012 12:25, Michal Privoznik ha scritto:
> +bool qmp_command_reports_success(const char *name) {
> + QmpCommand *cmd;
> +
> + QTAILQ_FOREACH(cmd, &qmp_commands, node) {
> + if (strcmp(cmd->name, name) == 0) {
> + return cmd->options ^ QCO_NO_SUCCESS_RESP;Clever... but please use (a & b) == 0 instead... Paolo > + } > + } > + > + return true; > +} > +
