From nobody Thu Dec 18 08:09:29 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=1574261323; cv=none; d=zoho.com; s=zohoarc; b=n/Wo34Y4SzaDKC4GgdiXJo5RMyHsv8+sTxVdA38wuk7RZkUFhLYs//1I8ysmnrreWjD6hRR1x8GNMvbFE2OEHRN6vvmUeT7Jd+nwRflqf757wpOYPgyR27/LvokZ/1rQ/ZKozi8X0jrBowQXauTiuSMl3BMeNxUnuXZ+BBJW9Nk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574261323; 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=gHHLKtXUksjn9mfeWZE0S3A33z6ZIr/1apREdZTU5x8=; b=nSOjlqU21usr5rO3FxdVYZt5Ij90eNlB4nMwFhYhJvf49fAom+1pSIqc5FAdieqXO9ks6Y5sAr/ZjyvZeMa76jzLDzaU4idQeHEy3FMcCmdBgMc+na6o8Serv1AcQB4wNzL+btn/ON07aoEV/MQvDjCAz3MIETL7CD/FDi8YJFE= 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 1574261323103690.6736783405925; Wed, 20 Nov 2019 06:48:43 -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-84-Y_MUUlP6MmqwZdQ2bLEWiQ-1; Wed, 20 Nov 2019 09:48:40 -0500 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 19BA38C0EA6; Wed, 20 Nov 2019 14:48:35 +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 E69591037ACE; Wed, 20 Nov 2019 14:48:34 +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 4E90718089D0; Wed, 20 Nov 2019 14:48:34 +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 xAKEmX3I004799 for ; Wed, 20 Nov 2019 09:48:33 -0500 Received: by smtp.corp.redhat.com (Postfix) id 5710D1037AD2; Wed, 20 Nov 2019 14:48:33 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.43.2.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id D5F931037ACE for ; Wed, 20 Nov 2019 14:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574261321; 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=gHHLKtXUksjn9mfeWZE0S3A33z6ZIr/1apREdZTU5x8=; b=aC1CdCS7uwEmh6zH66hNOzxhK2q91+Lx0AeeOcSHF/fAsVObg6QOh4WebW+BM7+DYvk2yB dMjeQfTiVr0LwLnKe+pvsdSAjqWplg3XcptRzv+tgoRip58BvwP0xKWpBfuqNtq033hQG/ V52JLMy1f30+A/nJ9ctdzpOFX2AIZaQ= From: Pavel Hrdina To: libvir-list@redhat.com Date: Wed, 20 Nov 2019 15:48:16 +0100 Message-Id: <7159a98f256049d6b51d50ba2f54e9b8877feaf4.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 03/14] use g_ascii_isalnum instead of c_isalnum 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.84 on 10.5.11.22 X-MC-Unique: Y_MUUlP6MmqwZdQ2bLEWiQ-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" Signed-off-by: Pavel Hrdina --- src/node_device/node_device_udev.c | 3 +-- src/util/virconf.c | 2 +- src/util/virkeyfile.c | 4 ++-- tools/vsh.c | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_devi= ce_udev.c index fabd2ec454..cae00dc9dc 100644 --- a/src/node_device/node_device_udev.c +++ b/src/node_device/node_device_udev.c @@ -22,7 +22,6 @@ #include #include #include -#include =20 #include "dirname.h" #include "node_device_conf.h" @@ -307,7 +306,7 @@ udevGenerateDeviceName(struct udev_device *device, def->name =3D virBufferContentAndReset(&buf); =20 for (i =3D 0; i < strlen(def->name); i++) { - if (!(c_isalnum(*(def->name + i)))) + if (!(g_ascii_isalnum(*(def->name + i)))) *(def->name + i) =3D '_'; } =20 diff --git a/src/util/virconf.c b/src/util/virconf.c index 42c847f999..b67716b9ce 100644 --- a/src/util/virconf.c +++ b/src/util/virconf.c @@ -562,7 +562,7 @@ virConfParseName(virConfParserCtxtPtr ctxt) return NULL; } while ((ctxt->cur < ctxt->end) && - (c_isalnum(CUR) || (CUR =3D=3D '_') || + (g_ascii_isalnum(CUR) || (CUR =3D=3D '_') || ((ctxt->conf->flags & VIR_CONF_FLAG_VMX_FORMAT) && ((CUR =3D=3D ':') || (CUR =3D=3D '.') || (CUR =3D=3D '-'))) || ((ctxt->conf->flags & VIR_CONF_FLAG_LXC_FORMAT) && diff --git a/src/util/virkeyfile.c b/src/util/virkeyfile.c index 054a187ba2..e50a37d3a7 100644 --- a/src/util/virkeyfile.c +++ b/src/util/virkeyfile.c @@ -154,7 +154,7 @@ static int virKeyFileParseValue(virKeyFileParserCtxtPtr= ctxt) } =20 keystart =3D ctxt->cur; - while (!IS_EOF && c_isalnum(CUR) && CUR !=3D '=3D') + while (!IS_EOF && g_ascii_isalnum(CUR) && CUR !=3D '=3D') ctxt->cur++; if (CUR !=3D '=3D') { virKeyFileError(ctxt, VIR_ERR_CONF_SYNTAX, "expected end of value = name, expected '=3D'"); @@ -223,7 +223,7 @@ static int virKeyFileParseStatement(virKeyFileParserCtx= tPtr ctxt) =20 if (CUR =3D=3D '[') { ret =3D virKeyFileParseGroup(ctxt); - } else if (c_isalnum(CUR)) { + } else if (g_ascii_isalnum(CUR)) { ret =3D virKeyFileParseValue(ctxt); } else if (CUR =3D=3D '#' || CUR =3D=3D ';') { ret =3D virKeyFileParseComment(ctxt); diff --git a/tools/vsh.c b/tools/vsh.c index 1076c8254b..beee1c2986 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -1444,7 +1444,7 @@ vshCommandParse(vshControl *ctl, vshCommandParser *pa= rser, vshCmd **partial) } else if (data_only) { goto get_data; } else if (tkdata[0] =3D=3D '-' && tkdata[1] =3D=3D '-' && - c_isalnum(tkdata[2])) { + g_ascii_isalnum(tkdata[2])) { char *optstr =3D strchr(tkdata + 2, '=3D'); size_t opt_index =3D 0; =20 --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list