From 08dbb4a69ab7872189ea40bfcc970eaf6f1ed7cb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 12 Mar 2023 19:49:58 +0100 Subject: [PATCH] event/BackendEvents: relicense to BSD-2 These headers contain only trivial integer constants and these are probably not even copyrightable. --- src/event/BackendEvents.hxx | 8 ++------ src/event/EpollEvents.hxx | 8 ++------ src/event/PollEvents.hxx | 8 ++------ src/event/WinSelectEvents.hxx | 8 ++------ 4 files changed, 8 insertions(+), 24 deletions(-) diff --git a/src/event/BackendEvents.hxx b/src/event/BackendEvents.hxx index 65283905b..ed183f5e3 100644 --- a/src/event/BackendEvents.hxx +++ b/src/event/BackendEvents.hxx @@ -1,8 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -// Copyright The Music Player Daemon Project +// SPDX-License-Identifier: BSD-2-Clause -#ifndef EVENT_BACKEND_EVENTS_HXX -#define EVENT_BACKEND_EVENTS_HXX +#pragma once #include "event/Features.h" @@ -22,5 +20,3 @@ using EventPollBackendEvents = EpollEvents; using EventPollBackendEvents = PollEvents; #endif - -#endif diff --git a/src/event/EpollEvents.hxx b/src/event/EpollEvents.hxx index cba865777..7a8563311 100644 --- a/src/event/EpollEvents.hxx +++ b/src/event/EpollEvents.hxx @@ -1,8 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -// Copyright The Music Player Daemon Project +// SPDX-License-Identifier: BSD-2-Clause -#ifndef EVENT_EPOLL_EVENTS_HXX -#define EVENT_EPOLL_EVENTS_HXX +#pragma once #include @@ -12,5 +10,3 @@ struct EpollEvents { static constexpr unsigned ERROR = EPOLLERR; static constexpr unsigned HANGUP = EPOLLHUP; }; - -#endif diff --git a/src/event/PollEvents.hxx b/src/event/PollEvents.hxx index fee2fda6e..5b0a6076d 100644 --- a/src/event/PollEvents.hxx +++ b/src/event/PollEvents.hxx @@ -1,8 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -// Copyright The Music Player Daemon Project +// SPDX-License-Identifier: BSD-2-Clause -#ifndef EVENT_POLL_EVENTS_HXX -#define EVENT_POLL_EVENTS_HXX +#pragma once #include @@ -12,5 +10,3 @@ struct PollEvents { static constexpr unsigned ERROR = POLLERR; static constexpr unsigned HANGUP = POLLHUP; }; - -#endif diff --git a/src/event/WinSelectEvents.hxx b/src/event/WinSelectEvents.hxx index 980d6c490..7c9a7873c 100644 --- a/src/event/WinSelectEvents.hxx +++ b/src/event/WinSelectEvents.hxx @@ -1,8 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -// Copyright The Music Player Daemon Project +// SPDX-License-Identifier: BSD-2-Clause -#ifndef EVENT_WINSELECT_EVENTS_HXX -#define EVENT_WINSELECT_EVENTS_HXX +#pragma once #include @@ -18,5 +16,3 @@ struct WinSelectEvents { static constexpr unsigned ERROR = 0; static constexpr unsigned HANGUP = 0; }; - -#endif