> +int qemu_opts_id_wellformed(const char *id)
This return 0 and 1 as a bool. Could we make the function return bool in the same series ? I wonder what are the possible interferences between !strchr("-._", id[i]) and Jeff's node name auto naming series.