From nobody Tue Nov 26 11:33:54 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 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=1573573573; cv=none; d=zoho.com; s=zohoarc; b=dp0q3I3SneGEdv6D/vZH1xvyxX1jwuLsZW6GdxjWQzsrxWsj32/Kc6tYz0PHJOAKS7/Y9XdpbsVXCotZaNp3epayi9zR+Wk1l8ZIojOFHwHBFMJM1sUykYTMTr97wRT30hjKfMp6tEN7FFczBdefL6gjkA4xvrcmk9Ac3WbivE8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573573573; 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=Rj8DC3pUvOIhmkipuTGTEh+eCnXRR2ffH/PagR3hih8=; b=davvbkOuB6Sw9JKBtQR9XXxNbCzgNJKF0SWayZrcjqSBX14B/C89VQjmCb6dKp0VlMAXWsHLVVlCJf+NIktLjgneWTJquSzKQcfduLOps0K2BdwawFeMdZ6RgMvsgFI2TDVAxfatcoY27G5ZZPWMw0bRivOnR/j2nF8D60Z5KTs= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1573573573337839.5640251601287; Tue, 12 Nov 2019 07:46:13 -0800 (PST) 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-8-rrcQU0H1M6qMILf5u7btFw-1; Tue, 12 Nov 2019 10:46:10 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5E9558C49AA; Tue, 12 Nov 2019 15:46:04 +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 2F558610E5; Tue, 12 Nov 2019 15:46:04 +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 DFD771819ACE; Tue, 12 Nov 2019 15:46:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xACFk3lc007832 for ; Tue, 12 Nov 2019 10:46:03 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7F75C3841; Tue, 12 Nov 2019 15:46:03 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.43.2.17]) by smtp.corp.redhat.com (Postfix) with ESMTP id 09D4E6117D for ; Tue, 12 Nov 2019 15:46:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573573572; 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=Rj8DC3pUvOIhmkipuTGTEh+eCnXRR2ffH/PagR3hih8=; b=Nb8bEuP0U1sHeAfMbjEhkgIaEJdBpHTCv6jmjxaX88irX2qXiHyj1yjELrlO45ONk9338T kcicStYaPtIn8cj3INm1TRD9NfWgiL8gipmO61QH0tjUCVVne8x/qcZcVF5sTG4VQh8Xrt kcCgxLrbKhDa4kbWOrRpnq3D317oN0k= From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Tue, 12 Nov 2019 16:47:00 +0100 Message-Id: <26791f39c042f093ed85d42962bb418f79ed35b5.1573573608.git.jtomko@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] docs: hacking: add missing code element 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.79 on 10.5.11.12 X-MC-Unique: rrcQU0H1M6qMILf5u7btFw-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Wrap the 'g_renew()' call for VIR_SHRINK_N in . Signed-off-by: J=C3=A1n Tomko --- Pushed as trivial. docs/hacking.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hacking.html.in b/docs/hacking.html.in index 5d13e4f71d..06deab9e90 100644 --- a/docs/hacking.html.in +++ b/docs/hacking.html.in @@ -1056,7 +1056,7 @@ BAD: the newly added memory is not zeroed VIR_EXPAND_Ng_renew(var_t, ptr= , n) zero the new memory manually or use an array type - VIR_SHRINK_Ng_renew(var_t, ptr, n) + VIR_SHRINK_Ng_renew(var_t, ptr= , n) VIR_APPEND_ELEMENTg_array_appe= nd_val g_ptr_array_add or g_byte_array_append<= /code> --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list