mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qom: Have class_init() take a const data argument
Mechanical change using gsed, then style manually adapted to pass checkpatch.pl script. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250424194905.82506-4-philmd@linaro.org>
This commit is contained in:
parent
f1fa787b92
commit
12d1a768bd
1121 changed files with 1774 additions and 1707 deletions
|
@ -347,7 +347,7 @@ static void qemu_chr_parse_spice_port(QemuOpts *opts, ChardevBackend *backend,
|
|||
spiceport->fqdn = g_strdup(name);
|
||||
}
|
||||
|
||||
static void char_spice_class_init(ObjectClass *oc, void *data)
|
||||
static void char_spice_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
ChardevClass *cc = CHARDEV_CLASS(oc);
|
||||
|
||||
|
@ -366,7 +366,7 @@ static const TypeInfo char_spice_type_info = {
|
|||
};
|
||||
module_obj(TYPE_CHARDEV_SPICE);
|
||||
|
||||
static void char_spicevmc_class_init(ObjectClass *oc, void *data)
|
||||
static void char_spicevmc_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
ChardevClass *cc = CHARDEV_CLASS(oc);
|
||||
|
||||
|
@ -382,7 +382,7 @@ static const TypeInfo char_spicevmc_type_info = {
|
|||
};
|
||||
module_obj(TYPE_CHARDEV_SPICEVMC);
|
||||
|
||||
static void char_spiceport_class_init(ObjectClass *oc, void *data)
|
||||
static void char_spiceport_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
ChardevClass *cc = CHARDEV_CLASS(oc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue