From nobody Sun Feb 8 18:43:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1606918565; cv=none; d=zohomail.com; s=zohoarc; b=ZO+9RcepEB8Pp68m0NlsG2iQpDdpDiEkStBN1s6LM1v/a54pBL13ZGhn8kg9Ne6jLpJTUMf2yjJVFNL1Tub7OrbeZ1Dv2j/tuj78UN6ZOUE35mbb6eSo7kHgqs/9mPHz/bN3MZt2bMOIR+1vxqKk9/kWZWDQ8GkvyJnvQACyOwU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606918565; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=U9Zst1m2uHx6J3FXNF9dz/zrcdp0Rze4DbZ5MIAwP+U=; b=ajwxxgxkK2duao2VxoD5gMn67bNpIFwyc0Q4xtMVAWTtwNiIo5YCjt/l/YeBJvhaM/GaIAZPLskUZZZJ07b8efJVIVTH0pSfHM1bn5dk8oEkwkdgImx2sgcbT7WfXQEYsithUeKMYBGhnengZs3wkeBYnL4A1a1N5WlqZBwEBTg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1606918565623791.6557652075385; Wed, 2 Dec 2020 06:16:05 -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-533-8D3ftTfyMveF0VjaVlpjlw-1; Wed, 02 Dec 2020 09:14:47 -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 4BD30835B5F; Wed, 2 Dec 2020 14:14:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2980360C6B; Wed, 2 Dec 2020 14:14:41 +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 E53A750034; Wed, 2 Dec 2020 14:14:40 +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 0B2EDNCF019016 for ; Wed, 2 Dec 2020 09:13:23 -0500 Received: by smtp.corp.redhat.com (Postfix) id 452F660C6D; Wed, 2 Dec 2020 14:13:23 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 923AD60BFA for ; Wed, 2 Dec 2020 14:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606918564; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=U9Zst1m2uHx6J3FXNF9dz/zrcdp0Rze4DbZ5MIAwP+U=; b=LhRCfXcpexEN90m/XdCfzj4HvqlvShV9zT9Bst4Lz00nmbBTAvOsasjQUd2E2ie9t6dksx r3xU2LJTcmS3sjfTn+O+leBhPrWH+rOp/hH3+9sgpqj+gAgiRaU+XhGLkyZVGKUpHN2FGC rQSp7+9vTrjyzMtvV7IFJh87Sx7Hq4Y= X-MC-Unique: 8D3ftTfyMveF0VjaVlpjlw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 2/5] virDomainCheckpointDefParse: Use 'unsigned int' for flags Date: Wed, 2 Dec 2020 15:13:11 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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.79 on 10.5.11.12 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-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Fix the type for a variable holding flags to the usual 'unsigned int' and change the name to be more appropriate to it's use. Signed-off-by: Peter Krempa Reviewed-by: Daniel Henrique Barboza --- src/conf/checkpoint_conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf/checkpoint_conf.c b/src/conf/checkpoint_conf.c index 33b6699be7..8744ac83e1 100644 --- a/src/conf/checkpoint_conf.c +++ b/src/conf/checkpoint_conf.c @@ -157,12 +157,12 @@ virDomainCheckpointDefParse(xmlXPathContextPtr ctxt, def->parent.parent_name =3D virXPathString("string(./parent/name)"= , ctxt); if ((domainNode =3D virXPathNode("./domain", ctxt))) { - int domainflags =3D VIR_DOMAIN_DEF_PARSE_INACTIVE | - VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE; + unsigned int domainParseFlags =3D VIR_DOMAIN_DEF_PARSE_INACTIV= E | + VIR_DOMAIN_DEF_PARSE_SKIP_VALI= DATE; def->parent.dom =3D virDomainDefParseNode(ctxt->node->doc, dom= ainNode, xmlopt, parseOpaque, - domainflags); + domainParseFlags); if (!def->parent.dom) return NULL; } else { --=20 2.28.0