From 846d7dc317e96328d4a1da54c420edf01d463d94 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Nov 2022 06:08:04 +0100 Subject: [PATCH] lib/curl/Error: rename header to HttpStatusError.hxx --- src/input/Error.cxx | 2 +- src/input/plugins/CurlInputPlugin.cxx | 2 +- src/lib/curl/{Error.hxx => HttpStatusError.hxx} | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) rename src/lib/curl/{Error.hxx => HttpStatusError.hxx} (95%) diff --git a/src/input/Error.cxx b/src/input/Error.cxx index d7b59d133..f7d6849c2 100644 --- a/src/input/Error.cxx +++ b/src/input/Error.cxx @@ -22,7 +22,7 @@ #include "config.h" #ifdef ENABLE_CURL -#include "lib/curl/Error.hxx" +#include "lib/curl/HttpStatusError.hxx" #endif #ifdef ENABLE_NFS diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index 3434c4d30..a4ca18e07 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -18,7 +18,7 @@ */ #include "CurlInputPlugin.hxx" -#include "lib/curl/Error.hxx" +#include "lib/curl/HttpStatusError.hxx" #include "lib/curl/Global.hxx" #include "lib/curl/Init.hxx" #include "lib/curl/Request.hxx" diff --git a/src/lib/curl/Error.hxx b/src/lib/curl/HttpStatusError.hxx similarity index 95% rename from src/lib/curl/Error.hxx rename to src/lib/curl/HttpStatusError.hxx index a00f64aee..fbd9641ac 100644 --- a/src/lib/curl/Error.hxx +++ b/src/lib/curl/HttpStatusError.hxx @@ -17,8 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef CURL_ERROR_HXX -#define CURL_ERROR_HXX +#pragma once #include @@ -38,5 +37,3 @@ public: return status; } }; - -#endif