From nobody Tue May 7 15:27:51 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=1612187553; cv=none; d=zohomail.com; s=zohoarc; b=BWH0Cc9E6PTLwRfKqPB4iNkqbI5FGkBLXGfE3c9bblt0ZyWnnlduzM8cGRkUGuwi+jugD8mxoj6fvtGWSmGy8US27IRM+y1gjza/AwhK0yltNL+d2KNoTAAjCN2WV1gyTWhVVYmwKkRBI4CShG0yAXCozI7BwWfGg3TSLpna17o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612187553; 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=UTA6bFlMUUbgIyQuljyewsp8VBCV+7o838wL1yVlIDY=; b=MmXiGEsCVecQuxt0muEA6ay3gf9T9DzB9zZ+F0vz4aZ30zW+Ce5jp00F0V5i3TD4dYp/sK8tI+x0Ja8dHZsU/alEvTJKqJ+aFVcVIH0bM2n66YoRtybeCCk8+4aXtqlSbVhxZw10GvPqH0CeiBBsXu4sdKE8U6XIc+X9aH/zyFs= 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 1612187553769944.370542819286; Mon, 1 Feb 2021 05:52:33 -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-190-BlNUNCw2P0S9mzUJsTgbSw-1; Mon, 01 Feb 2021 08:52:30 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 47834803623; Mon, 1 Feb 2021 13:52:25 +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 C7F375D9DC; Mon, 1 Feb 2021 13:52:23 +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 5E37250038; Mon, 1 Feb 2021 13:52:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 111DqKSU027049 for ; Mon, 1 Feb 2021 08:52:20 -0500 Received: by smtp.corp.redhat.com (Postfix) id 1B29C19713; Mon, 1 Feb 2021 13:52:20 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7412E1975E for ; Mon, 1 Feb 2021 13:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612187552; 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=UTA6bFlMUUbgIyQuljyewsp8VBCV+7o838wL1yVlIDY=; b=KgOaoktV/JXrLDlhKUwrbGF3vEz1HoTvrc1JpbUcdSm6M2+54jZeTXiknH9YHTpXFk+qhj Yq4DPmXKKkdTncfnVC4HsRf0JQoliErXFfmiN21PoLKJUFFav+IaxoeYwh2PSnDB8qBOTz a18wS+NqxK/VryrPY3zKrOJycXxMf2Q= X-MC-Unique: BlNUNCw2P0S9mzUJsTgbSw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH] util: virstring: Remove unused prototypes for virStr(n)dup Date: Mon, 1 Feb 2021 14:52:15 +0100 Message-Id: <3ea190ee7805606458a353f6ea9b29dc1b177d37.1612187535.git.pkrempa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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.14 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" The headers weren't removed after use of VIR_STRDUP was removed. Signed-off-by: Peter Krempa Reviewed-by: Daniel P. Berrang=C3=A9 --- src/util/virstring.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/util/virstring.h b/src/util/virstring.h index 55547b040a..cfd24f0b74 100644 --- a/src/util/virstring.h +++ b/src/util/virstring.h @@ -123,13 +123,6 @@ int virStrcpy(char *dest, const char *src, size_t dest= bytes) G_GNUC_WARN_UNUSED_RESULT; #define virStrcpyStatic(dest, src) virStrcpy((dest), (src), sizeof(dest)) -/* Don't call these directly - use the macros below */ -int virStrdup(char **dest, const char *src) - G_GNUC_WARN_UNUSED_RESULT ATTRIBUTE_NONNULL(1); - -int virStrndup(char **dest, const char *src, ssize_t n) - G_GNUC_WARN_UNUSED_RESULT ATTRIBUTE_NONNULL(1); - size_t virStringListLength(const char * const *strings); int virStringSortCompare(const void *a, const void *b); --=20 2.29.2