File: fix_typos.patch

package info (click to toggle)
libsndfile 1.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,108 kB
  • sloc: ansic: 55,350; cpp: 1,108; python: 791; makefile: 545; sh: 539; cs: 122
file content (140 lines) | stat: -rw-r--r-- 5,427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
From: IOhannes m zmoelnig <umlaeute@debian.org>
Date: Wed, 5 Oct 2016 00:00:00 +0200
Subject: fixed spelling errors

Forwarded: https://github.com/libsndfile/libsndfile/pull/957
Last-Update: 2016-10-05

discovered by lintian
---
 programs/sndfile-convert.c |  2 +-
 src/ogg.c                  |  2 +-
 src/ogg_opus.c             |  2 +-
 src/wavlike.c              |  2 +-
 tests/misc_test.c          |  2 +-
 tests/win32_test.c         | 12 ++++++------
 6 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/programs/sndfile-convert.c b/programs/sndfile-convert.c
index b946862..95f59d3 100644
--- a/programs/sndfile-convert.c
+++ b/programs/sndfile-convert.c
@@ -336,7 +336,7 @@ main (int argc, char * argv [])
 	if ((sfinfo.format & SF_FORMAT_SUBMASK) == SF_FORMAT_GSM610 && sfinfo.samplerate != 8000)
 	{	printf (
 			"WARNING: GSM 6.10 data format only supports 8kHz sample rate. The converted\n"
-			"ouput file will contain the input data converted to the GSM 6.10 data format\n"
+			"output file will contain the input data converted to the GSM 6.10 data format\n"
 			"but not re-sampled.\n"
 			) ;
 		} ;
diff --git a/src/ogg.c b/src/ogg.c
index f3e92e1..0ede207 100644
--- a/src/ogg.c
+++ b/src/ogg.c
@@ -815,7 +815,7 @@ ogg_stream_classify (SF_PRIVATE *psf, OGG_PRIVATE* odata)
 			break ;
 		} ;
 
-	psf_log_printf (psf, "This Ogg bitstream contains some uknown data type.\n") ;
+	psf_log_printf (psf, "This Ogg bitstream contains some unknown data type.\n") ;
 	return SFE_UNIMPLEMENTED ;
 } /* ogg_stream_classify */
 
diff --git a/src/ogg_opus.c b/src/ogg_opus.c
index c938362..5ad86ac 100644
--- a/src/ogg_opus.c
+++ b/src/ogg_opus.c
@@ -1448,7 +1448,7 @@ ogg_opus_analyze_file (SF_PRIVATE *psf)
 		oopus->pkt_pos = oopus->pg_pos - gp ;
 		}
 	else if (gp < oopus->pg_pos)
-	{	psf_log_printf (psf, "Opus : First data page is also the last, and granule position has an (ambigious) offset.\n") ;
+	{	psf_log_printf (psf, "Opus : First data page is also the last, and granule position has an (ambiguous) offset.\n") ;
 		return SFE_MALFORMED_FILE ;
 		} ;
 	oopus->u.decode.gp_start = oopus->pkt_pos ;
diff --git a/src/wavlike.c b/src/wavlike.c
index 7acdc80..e361a65 100644
--- a/src/wavlike.c
+++ b/src/wavlike.c
@@ -161,7 +161,7 @@ wavlike_read_fmt_chunk (SF_PRIVATE *psf, int fmtsize)
 	{	psf_log_printf (psf, "  Bit Width     : 24\n") ;
 
 		psf_log_printf (psf, "\n"
-			"  Ambiguous information in 'fmt ' chunk. Possibile file types:\n"
+			"  Ambiguous information in 'fmt ' chunk. Possible file types:\n"
 			"    0) Invalid IEEE float file generated by Syntrillium's Cooledit!\n"
 			"    1) File generated by ALSA's arecord containing 24 bit samples in 32 bit containers.\n"
 			"    2) 24 bit file with incorrect Block Align value.\n"
diff --git a/tests/misc_test.c b/tests/misc_test.c
index 31e93d1..b6bfb20 100644
--- a/tests/misc_test.c
+++ b/tests/misc_test.c
@@ -293,7 +293,7 @@ filesystem_full_test (int format)
 	sfinfo.frames = 0 ;
 
 	if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) != NULL)
-	{	printf ("\n\nLine %d : Error, file should not have openned.\n", __LINE__ - 1) ;
+	{	printf ("\n\nLine %d : Error, file should not have opened.\n", __LINE__ - 1) ;
 		exit (1) ;
 		} ;
 
diff --git a/tests/win32_test.c b/tests/win32_test.c
index d0dc6d8..e1c2105 100644
--- a/tests/win32_test.c
+++ b/tests/win32_test.c
@@ -135,7 +135,7 @@ show_fstat_error (void)
 
 	printf ("2) Now use system (\"%s %s\") to show the file length.\n\n", dir_cmd, filename) ;
 
-	/* Would use snprintf, but thats not really available on windows. */
+	/* Would use snprintf, but that's not really available on windows. */
 	memset (data, 0, sizeof (data)) ;
 	strncpy (data, dir_cmd, sizeof (data) - 1) ;
 	strncat (data, " ", sizeof (data) - 1 - strlen (data)) ;
@@ -155,7 +155,7 @@ show_fstat_error (void)
 	close (fd) ;
 
 	if (statbuf.st_size != 2 * sizeof (data))
-		printf ("but thats just plain ***WRONG***.\n\n") ;
+		printf ("but that's just plain ***WRONG***.\n\n") ;
 	else
 	{	printf ("which is correct.\n\n") ;
 		unlink (filename) ;
@@ -196,7 +196,7 @@ show_lseek_error (void)
 
 	printf ("2) Now use system (\"%s %s\") to show the file length.\n\n", dir_cmd, filename) ;
 
-	/* Would use snprintf, but thats not really available on windows. */
+	/* Would use snprintf, but that's not really available on windows. */
 	memset (data, 0, sizeof (data)) ;
 	strncpy (data, dir_cmd, sizeof (data) - 1) ;
 	strncat (data, " ", sizeof (data) - 1 - strlen (data)) ;
@@ -213,7 +213,7 @@ show_lseek_error (void)
 	close (fd) ;
 
 	if (retval != 2 * sizeof (data))
-		printf ("but thats just plain ***WRONG***.\n\n") ;
+		printf ("but that's just plain ***WRONG***.\n\n") ;
 	else
 	{	printf ("which is correct.\n\n") ;
 		unlink (filename) ;
@@ -244,7 +244,7 @@ show_stat_fstat_error (void)
 
 	assert (write (fd, data, sizeof (data)) > 0) ;
 
-	printf ("1) Now call stat and fstat on the file and retreive the file lengths.\n") ;
+	printf ("1) Now call stat and fstat on the file and retrieve the file lengths.\n") ;
 
 	if (stat (filename, &buf) != 0)
 	{	printf ("\n\nLine %d: stat() failed : %s\n\n", __LINE__, strerror (errno)) ;
@@ -262,7 +262,7 @@ show_stat_fstat_error (void)
 
 
 	if (stat_size == 0 || stat_size != fstat_size)
-		printf ("but thats just plain ***WRONG***.\n\n") ;
+		printf ("but that's just plain ***WRONG***.\n\n") ;
 	else
 		printf ("which is correct.\n\n") ;