From b8210bbc45bc25091cedb7be77cd380b19e86241 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max.kellermann@gmail.com>
Date: Sat, 16 Sep 2023 22:32:17 +0200
Subject: [PATCH] lib/avahi/Poll: fix copyright header

---
 src/lib/avahi/Poll.cxx | 13 +++++++------
 src/lib/avahi/Poll.hxx | 10 ++++------
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/src/lib/avahi/Poll.cxx b/src/lib/avahi/Poll.cxx
index 57f3bdb5e..eb17ebe50 100644
--- a/src/lib/avahi/Poll.cxx
+++ b/src/lib/avahi/Poll.cxx
@@ -1,5 +1,6 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-// Copyright The Music Player Daemon Project
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright CM4all GmbH
+// author: Max Kellermann <mk@cm4all.com>
 
 #include "Poll.hxx"
 #include "event/SocketEvent.hxx"
@@ -33,8 +34,8 @@ private:
 
 public:
 	AvahiWatch(EventLoop &_loop,
-		   SocketDescriptor _fd, AvahiWatchEvent _event,
-		   AvahiWatchCallback _callback, void *_userdata) noexcept
+	      SocketDescriptor _fd, AvahiWatchEvent _event,
+	      AvahiWatchCallback _callback, void *_userdata) noexcept
 		:event(_loop, BIND_THIS_METHOD(OnSocketReady), _fd),
 		 callback(_callback), userdata(_userdata) {
 		event.Schedule(FromAvahiWatchEvent(_event));
@@ -138,7 +139,7 @@ Poll::Poll(EventLoop &_loop) noexcept
 
 AvahiWatch *
 Poll::WatchNew(const AvahiPoll *api, int fd, AvahiWatchEvent event,
-	       AvahiWatchCallback callback, void *userdata) noexcept
+		      AvahiWatchCallback callback, void *userdata) noexcept
 {
 	const Poll &poll = *(const Poll *)api;
 
@@ -148,7 +149,7 @@ Poll::WatchNew(const AvahiPoll *api, int fd, AvahiWatchEvent event,
 
 AvahiTimeout *
 Poll::TimeoutNew(const AvahiPoll *api, const struct timeval *tv,
-		 AvahiTimeoutCallback callback, void *userdata) noexcept
+			AvahiTimeoutCallback callback, void *userdata) noexcept
 {
 	const Poll &poll = *(const Poll *)api;
 
diff --git a/src/lib/avahi/Poll.hxx b/src/lib/avahi/Poll.hxx
index 0cddba72f..dba152e39 100644
--- a/src/lib/avahi/Poll.hxx
+++ b/src/lib/avahi/Poll.hxx
@@ -1,8 +1,8 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-// Copyright The Music Player Daemon Project
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright CM4all GmbH
+// author: Max Kellermann <mk@cm4all.com>
 
-#ifndef MPD_AVAHI_POLL_HXX
-#define MPD_AVAHI_POLL_HXX
+#pragma once
 
 #include <avahi-common/watch.h>
 
@@ -36,5 +36,3 @@ private:
 };
 
 } // namespace Avahi
-
-#endif