From ddc77f8211091d099fcb3ae2cf0a8ab59a05196d Mon Sep 17 00:00:00 2001
From: James Cowgill <jcowgill@debian.org>
Date: Tue, 3 Oct 2017 09:47:40 +0100
Subject: [PATCH] Fix some spelling issues repotred by lintian

See https://lintian.debian.org
---
 libopenmpt/libopenmpt_c.cpp | 4 ++--
 openmpt123/openmpt123.cpp   | 2 +-
 soundlib/load_j2b.cpp       | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libopenmpt/libopenmpt_c.cpp b/libopenmpt/libopenmpt_c.cpp
index c001d3de6..45b8ff7d8 100644
--- a/libopenmpt/libopenmpt_c.cpp
+++ b/libopenmpt/libopenmpt_c.cpp
@@ -109,7 +109,7 @@ static std::string format_exception( const char * const function ) {
 	} catch ( ... ) {
 		err += function;
 		err += ": ";
-		err += "UNKOWN INTERNAL ERROR";
+		err += "UNKNOWN INTERNAL ERROR";
 	}
 	return err;
 }
@@ -374,7 +374,7 @@ int openmpt_error_is_transient( int error ) {
 }
 
 const char * openmpt_error_string( int error ) {
-	const char * text = "unkown error";
+	const char * text = "unknown error";
 	switch ( error ) {
 		case OPENMPT_ERROR_OK:                
 			text = "";
diff --git a/openmpt123/openmpt123.cpp b/openmpt123/openmpt123.cpp
index 529079ffa..e99bffcb6 100644
--- a/openmpt123/openmpt123.cpp
+++ b/openmpt123/openmpt123.cpp
@@ -509,7 +509,7 @@ static void show_info( std::ostream & log, bool verbose ) {
 	log << " <https://libsdl.org/>" << std::endl;
 #endif
 #ifdef MPT_WITH_PULSEAUDIO
-	log << " " << "libpulse, libpulse-simple" << " (headers " << pa_get_headers_version()  << ", API " << PA_API_VERSION << ", PROTOCOL " << PA_PROTOCOL_VERSION << ", library " << ( pa_get_library_version() ? pa_get_library_version() : "unkown" ) << ") <https://www.freedesktop.org/wiki/Software/PulseAudio/>" << std::endl;
+	log << " " << "libpulse, libpulse-simple" << " (headers " << pa_get_headers_version()  << ", API " << PA_API_VERSION << ", PROTOCOL " << PA_PROTOCOL_VERSION << ", library " << ( pa_get_library_version() ? pa_get_library_version() : "unknown" ) << ") <https://www.freedesktop.org/wiki/Software/PulseAudio/>" << std::endl;
 #endif
 #ifdef MPT_WITH_PORTAUDIO
 	log << " " << Pa_GetVersionText() << " (" << Pa_GetVersion() << ") <http://portaudio.com/>" << std::endl;
diff --git a/soundlib/load_j2b.cpp b/soundlib/load_j2b.cpp
index 897e7a635..bd746b5ab 100644
--- a/soundlib/load_j2b.cpp
+++ b/soundlib/load_j2b.cpp
@@ -413,7 +413,7 @@ struct AMSampleHeader
 	uint16le pan;
 	uint16le volume;
 	uint16le flags;
-	uint16le unkown;		// 0x0000 / 0x0080?
+	uint16le unknown;		// 0x0000 / 0x0080?
 	uint32le length;
 	uint32le loopStart;
 	uint32le loopEnd;
-- 
2.14.2

