From nobody Fri Apr 26 22:00:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1531076501862278.24121147579467; Sun, 8 Jul 2018 12:01:41 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5AA36308402D; Sun, 8 Jul 2018 19:01:38 +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 020D6451D; Sun, 8 Jul 2018 19:01:36 +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 DA06618037ED; Sun, 8 Jul 2018 19:01:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w68J1T24024190 for ; Sun, 8 Jul 2018 15:01:29 -0400 Received: by smtp.corp.redhat.com (Postfix) id E5218308BDAD; Sun, 8 Jul 2018 19:01:29 +0000 (UTC) Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DD1C5308BDAA for ; Sun, 8 Jul 2018 19:01:28 +0000 (UTC) Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CEEF9155E0 for ; Sun, 8 Jul 2018 19:01:16 +0000 (UTC) Received: by mail-qt0-f195.google.com with SMTP id h4-v6so13834281qtj.7 for ; Sun, 08 Jul 2018 12:01:16 -0700 (PDT) Received: from localhost.localdomain (189.26.185.120.dynamic.adsl.gvt.net.br. [189.26.185.120]) by smtp.gmail.com with ESMTPSA id k3-v6sm9945187qkl.95.2018.07.08.12.01.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 12:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=YiMqBO3VG5F1A2aLRBQTFNqep+vFhoryq5SfXum4AMU=; b=bY57PXm0pwFzXg6eQGsxdaftdgR5MnyKR0VDhIQjvB6ZR1ffBWI5zaHbYXhqNufUby JnDPcn0SW4pTRNoMiWkvCuO14uPgN5J4/Tw99JEeFu7aLv7qxuhp28H2Zj601T4TIqyo kefsy07U68mFgMkxCbidAPGxpj3jK9JdiVZf1umVOixSQJ4fiI5qF4VBk9isXrRfeTyi aj9gHeDTGfBSZfIaVVsAkccPkPubuFErXCX+PNOzc9jy7JStJAK6QK+qFtiB5HAYyAvZ MC9kpqxdhZOB9j0scHYeKkTejKSDfZxdlENdOHjyn+zGJA6sscdcHRtkKPF70FPwZMZ7 uYOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YiMqBO3VG5F1A2aLRBQTFNqep+vFhoryq5SfXum4AMU=; b=EU4N1yvZFHyUEEmpIKVmWPWvjUZ/ffNJjuNEVygs9uwavVXpq5N5HbTPqNT5SkjYa1 3SDJGEL8/acyJ+1wPDRQkSCEXQyjIKNDWtbw5ynZwGMqTd4kLjRNcvWANUkwZk78lg6N OqSiXD3hCASnD0LVuNAOoavF5rtYNqrzDp8KLYMWQYPlfyJE0SmT2ossjkj0AC6q8o0c Y9RmUMtAD/mdqMk86IF+vNjLEFBQ2ULx0fFm5TCTd+SJtVnYuqy6aC/NOPl0SnEcpc82 Ywjj0O/WPIrMtj3GVDvDAAHIKgYYrHqIYjw765yT62uOqLN24cyYb5JjQr8LYNav/3yz BWbA== X-Gm-Message-State: APt69E3e1V/P3PpYIcRW8gX4z2wCvmoTTMaQwbKGoIXgUx5VtuqinrAZ 9N+2irTPdxGiayLrcImW2ozUHA== X-Google-Smtp-Source: AAOMgpco87RUvua+sKg8sT9ZtB9uVmntTTrf3nCNd4gvCAzGcsqJ6bNNM0Rud3nbHwi10K3H6QXYxQ== X-Received: by 2002:a0c:c683:: with SMTP id d3-v6mr15571340qvj.152.1531076475565; Sun, 08 Jul 2018 12:01:15 -0700 (PDT) From: Marcos Paulo de Souza To: libvir-list@redhat.com Date: Sun, 8 Jul 2018 15:56:53 -0300 Message-Id: <20180708185653.32330-1-marcos.souza.org@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Sun, 08 Jul 2018 19:01:16 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Sun, 08 Jul 2018 19:01:16 +0000 (UTC) for IP:'209.85.216.195' DOMAIN:'mail-qt0-f195.google.com' HELO:'mail-qt0-f195.google.com' FROM:'marcos.souza.org@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.281 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, T_DKIM_INVALID) 209.85.216.195 mail-qt0-f195.google.com 209.85.216.195 mail-qt0-f195.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.24 X-loop: libvir-list@redhat.com Cc: Marcos Paulo de Souza Subject: [libvirt] [PATCH] examples: Remove config.h from hellolibvirt and openauth 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Sun, 08 Jul 2018 19:01:39 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" These two examples do not use any definition from config.h, and by removing it these examples can be compiled standalone. Signed-off-by: Marcos Paulo de Souza Reviewed-by: Erik Skultety --- When trying to remove config.h from domtop and domsuspend, a later inclusi= on of unistd.h complains about the missing config.h. This unistd.h come from gnulib, so I need more time to check why this head= er would complain, so for now just these examples are a good start ... examples/hellolibvirt/hellolibvirt.c | 2 -- examples/openauth/openauth.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/examples/hellolibvirt/hellolibvirt.c b/examples/hellolibvirt/h= ellolibvirt.c index 02c4401987..bfb12846e6 100644 --- a/examples/hellolibvirt/hellolibvirt.c +++ b/examples/hellolibvirt/hellolibvirt.c @@ -2,8 +2,6 @@ * hypervisor and gather a few bits of information about domains. * Similar API's exist for storage pools, networks, and interfaces. */ =20 -#include - #include #include #include diff --git a/examples/openauth/openauth.c b/examples/openauth/openauth.c index eef46d5f52..efd21c374f 100644 --- a/examples/openauth/openauth.c +++ b/examples/openauth/openauth.c @@ -1,8 +1,6 @@ /* This is a copy of the hellolibvirt example demonstaring how to use * virConnectOpenAuth with a custom auth callback */ =20 -#include - #include #include #include --=20 2.17.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list