From 8906ce07de313a5bad503587c759dda3ca2fb1d5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 3 Apr 2024 20:29:46 +0200 Subject: [PATCH] output/httpd/IcyMetaDataServer: pass metaint as std::size_t --- src/output/plugins/httpd/IcyMetaDataServer.cxx | 2 +- src/output/plugins/httpd/IcyMetaDataServer.hxx | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/output/plugins/httpd/IcyMetaDataServer.cxx b/src/output/plugins/httpd/IcyMetaDataServer.cxx index 8bc0cbd24..0314089f1 100644 --- a/src/output/plugins/httpd/IcyMetaDataServer.cxx +++ b/src/output/plugins/httpd/IcyMetaDataServer.cxx @@ -12,7 +12,7 @@ std::string icy_server_metadata_header(const char *name, const char *genre, const char *url, - const char *content_type, int metaint) noexcept + const char *content_type, std::size_t metaint) noexcept { return fmt::format("HTTP/1.1 200 OK\r\n" "icy-notice1:
This stream requires an audio player!
\r\n" /* TODO */ diff --git a/src/output/plugins/httpd/IcyMetaDataServer.hxx b/src/output/plugins/httpd/IcyMetaDataServer.hxx index 26f6a06d8..85bae58e5 100644 --- a/src/output/plugins/httpd/IcyMetaDataServer.hxx +++ b/src/output/plugins/httpd/IcyMetaDataServer.hxx @@ -1,11 +1,11 @@ // SPDX-License-Identifier: GPL-2.0-or-later // Copyright The Music Player Daemon Project -#ifndef MPD_ICY_META_DATA_SERVER_HXX -#define MPD_ICY_META_DATA_SERVER_HXX +#pragma once #include "Page.hxx" +#include #include #include @@ -15,9 +15,7 @@ struct Tag; std::string icy_server_metadata_header(const char *name, const char *genre, const char *url, - const char *content_type, int metaint) noexcept; + const char *content_type, std::size_t metaint) noexcept; PagePtr icy_server_metadata_page(const Tag &tag, const TagType *types) noexcept; - -#endif