From nobody Thu Dec 18 08:10:50 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.61 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=1574261330; cv=none; d=zoho.com; s=zohoarc; b=gU4Q8gvcxcBufLQnpouau9sjGtl19jc8QEaM6QO637MQ/3IkcxPVRawXgr6H4mda4aGHDgR2ks34O4WM3ApIa5siIdho/l93oc8W//mJoQA2oQAX7Ms4WTT3GNWbm1HNlHNfs/Ns6zs1hzLCiOdJj5w3pGENw0mbTpw+xUX3Mu4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574261330; 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=LN9vrF7tXFT0qFnVWfC+pJoJaca2OakpNxnHc3bpWbs=; b=KUhXUkZnK6rFm35ITLJfrx/UuoVNvswOskVkmrQpmKG/WiIgC2xfaG/vSg4DhJanDc40Tr9JyVmIrnvRFYiFKPRkrCKUTseQBW62dmbE3o5fFlSVBdwYpfwFPVIc1RGG2SskRfoPdYzT7TjjzUy74p0JaOp01oPs46jUfylb4sk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.61 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-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 157426133053419.067009289947578; Wed, 20 Nov 2019 06:48:50 -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-346-vnr5y8foNd-YMFGpv8XX7A-1; Wed, 20 Nov 2019 09:48:47 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7D678802690; Wed, 20 Nov 2019 14:48:40 +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 568135F79B; Wed, 20 Nov 2019 14:48:40 +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 144B018089D0; Wed, 20 Nov 2019 14:48:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xAKEmWSK004791 for ; Wed, 20 Nov 2019 09:48:32 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7E6541054FBF; Wed, 20 Nov 2019 14:48:32 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.43.2.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 06B951037ACE for ; Wed, 20 Nov 2019 14:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574261329; 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=LN9vrF7tXFT0qFnVWfC+pJoJaca2OakpNxnHc3bpWbs=; b=OK9JX3NyejjV0Lb42DmtT+3V0+4p8QevRvsNYP1fzS6JRenqCU9ORI4DkVrtfPVqWFrVud +AAn99IB2BdkKVB/ys1xo4ijIZlgLb3GQrnrfU82g1yAIm+mJI8WA4+nbVYqKzi3KtOeNB 4cNcoGpGWo5n41VO1COTlbiHBpPp8ZU= From: Pavel Hrdina To: libvir-list@redhat.com Date: Wed, 20 Nov 2019 15:48:15 +0100 Message-Id: <83fc5a42f5c90fcc8dcfad5bebe7ffca7126dcb0.1574261216.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 02/14] virkeyfile: define IS_ASCII instead c_isascii from gnulib 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.15 X-MC-Unique: vnr5y8foNd-YMFGpv8XX7A-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" GLib doesn't provide alternative to c_isascii and this is the only usage of that macro so define a replacement ourselves. Signed-off-by: Pavel Hrdina --- src/util/virkeyfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/virkeyfile.c b/src/util/virkeyfile.c index 6cd3a5168e..054a187ba2 100644 --- a/src/util/virkeyfile.c +++ b/src/util/virkeyfile.c @@ -21,7 +21,6 @@ #include =20 =20 -#include "c-ctype.h" #include "virlog.h" #include "viralloc.h" #include "virfile.h" @@ -78,6 +77,7 @@ struct _virKeyFileParserCtxt { #define IS_EOF (ctxt->cur >=3D ctxt->end) #define IS_EOL(c) (((c) =3D=3D '\n') || ((c) =3D=3D '\r')) #define IS_BLANK(c) (((c) =3D=3D ' ') || ((c) =3D=3D '\t')) +#define IS_ASCII(c) ((c) < 128) #define CUR (*ctxt->cur) #define NEXT if (!IS_EOF) ctxt->cur++; =20 @@ -110,7 +110,7 @@ static int virKeyFileParseGroup(virKeyFileParserCtxtPtr= ctxt) VIR_FREE(ctxt->groupname); =20 name =3D ctxt->cur; - while (!IS_EOF && c_isascii(CUR) && CUR !=3D ']') + while (!IS_EOF && IS_ASCII(CUR) && CUR !=3D ']') ctxt->cur++; if (CUR !=3D ']') { virKeyFileError(ctxt, VIR_ERR_CONF_SYNTAX, "cannot find end of gro= up name, expected ']'"); --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list