diff options
Diffstat (limited to 'qga/main.c')
-rw-r--r-- | qga/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qga/main.c b/qga/main.c index cae4d7b36f..cc58d2b53d 100644 --- a/qga/main.c +++ b/qga/main.c @@ -1379,7 +1379,7 @@ int main(int argc, char **argv) goto end; } if (socket_activation) { - SocketAddressLegacy *addr; + SocketAddress *addr; g_free(config->method); g_free(config->channel_path); @@ -1388,13 +1388,13 @@ int main(int argc, char **argv) addr = socket_local_address(FIRST_SOCKET_ACTIVATION_FD, NULL); if (addr) { - if (addr->type == SOCKET_ADDRESS_LEGACY_KIND_UNIX) { + if (addr->type == SOCKET_ADDRESS_TYPE_UNIX) { config->method = g_strdup("unix-listen"); - } else if (addr->type == SOCKET_ADDRESS_LEGACY_KIND_VSOCK) { + } else if (addr->type == SOCKET_ADDRESS_TYPE_VSOCK) { config->method = g_strdup("vsock-listen"); } - qapi_free_SocketAddressLegacy(addr); + qapi_free_SocketAddress(addr); } if (!config->method) { |