From nobody Sat May 4 04:55:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1602097822; cv=none; d=zohomail.com; s=zohoarc; b=FHXp+3F3WuQxSEIqgANX3rBLysBxYBxW/RKNcMywaMq06qv/cN/AWY2vd+PaqMh4DzGEXicVNp/w2alQMmIo/dKlcgnmRv35jyWm8lA/+VSf1YJYH7f2VsM7Yfj+X2wb03DmusqvuIyD5Cf4PAcT74OZ8w8GOgtSzF7/MDDpFdI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602097822; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=cW3Wh/HIBpLUWtDeBypzzmh+E0xAIxQI2d7SLPYpBM8=; b=brdCCrVUVwNPHRwfSOzw4R5uaFQ2sRhcpMRNj0aFqvHX5qAzx7dxp2jaNzftRw0EmMwdB01nONjtx6oQgI8vaBKfnB+T1mpeFu/X7VK9+JLHhOPXfUkY9eFhoICNOEolMqhKhpZGqFrU2gTFFDH2j9/yCndlBkVY6DITOFIczdo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1602097822100406.1839984708496; Wed, 7 Oct 2020 12:10:22 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-400-wn5xOsOmOFu1Rq4BZwlTIg-1; Wed, 07 Oct 2020 15:10:18 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 32EEE191E2A2; Wed, 7 Oct 2020 19:10:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 115B81001901; Wed, 7 Oct 2020 19:10:10 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 895C11832FC2; Wed, 7 Oct 2020 19:10:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 097JA8eR004317 for ; Wed, 7 Oct 2020 15:10:08 -0400 Received: by smtp.corp.redhat.com (Postfix) id 261415C1C2; Wed, 7 Oct 2020 19:10:08 +0000 (UTC) Received: from hjs.redhat.com (unknown [10.43.2.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id A25D95C1BD for ; Wed, 7 Oct 2020 19:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602097820; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cW3Wh/HIBpLUWtDeBypzzmh+E0xAIxQI2d7SLPYpBM8=; b=ezoFVkx2zp0rB83as/A/hIILFq5PO+JF5DsfuAijvc0pN7WO34fsCUW634PQV0gRvwyR6H pI0D+hei4if7qE6BnutJGjELfjqBExdFKltfbV0rZVnKNTM2FQI3ZRaa+ohgY+4/BE/IXO DrOYgPPSvqcO4opjW4zMeFc2wEjEiCA= X-MC-Unique: wn5xOsOmOFu1Rq4BZwlTIg-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH] tools: spell out the type instead of using typeof Date: Wed, 7 Oct 2020 21:10:01 +0200 Message-Id: <595d92c6dadae5f5d2b005f70c0947dfe1dd4ed3.1602097798.git.jtomko@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: J=C3=A1n Tomko Reviewed-by: Daniel Henrique Barboza --- tools/virsh-completer-domain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virsh-completer-domain.c b/tools/virsh-completer-domain.c index 50a8a31fcd..c657627ac1 100644 --- a/tools/virsh-completer-domain.c +++ b/tools/virsh-completer-domain.c @@ -357,7 +357,7 @@ virshDomainInterfaceAddrSourceCompleter(vshControl *ctl= G_GNUC_UNUSED, =20 virCheckFlags(0, NULL); =20 - ret =3D g_new0(typeof(*ret), VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LAST += 1); + ret =3D g_new0(char *, VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LAST + 1); =20 for (i =3D 0; i < VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LAST; i++) ret[i] =3D g_strdup(virshDomainInterfaceAddressesSourceTypeToStrin= g(i)); @@ -376,7 +376,7 @@ virshDomainHostnameSourceCompleter(vshControl *ctl G_GN= UC_UNUSED, =20 virCheckFlags(0, NULL); =20 - ret =3D g_new0(typeof(*ret), VIRSH_DOMAIN_HOSTNAME_SOURCE_LAST + 1); + ret =3D g_new0(char *, VIRSH_DOMAIN_HOSTNAME_SOURCE_LAST + 1); =20 for (i =3D 0; i < VIRSH_DOMAIN_HOSTNAME_SOURCE_LAST; i++) ret[i] =3D g_strdup(virshDomainHostnameSourceTypeToString(i)); --=20 2.26.2