summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorgabor <gabor@FreeBSD.org>2013-04-17 11:40:10 +0000
committergabor <gabor@FreeBSD.org>2013-04-17 11:40:10 +0000
commitd3ee8e3ff6bd3ac253dc2660d5778b4b2990dd75 (patch)
tree6c2aee498f9e11d960770edc4c69d81c03d3cc25 /lib
parent534bc4664d43755c6bed54f3c55baaddc569aba3 (diff)
downloadFreeBSD-src-d3ee8e3ff6bd3ac253dc2660d5778b4b2990dd75.zip
FreeBSD-src-d3ee8e3ff6bd3ac253dc2660d5778b4b2990dd75.tar.gz
- Correct mispellings of the word occurrence
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/i386/string/memchr.S2
-rw-r--r--lib/libc/i386/string/strchr.S4
-rw-r--r--lib/libc/i386/string/strrchr.S4
-rw-r--r--lib/libc/stdlib/realpath.c2
-rw-r--r--lib/libz/zlib.h2
5 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/i386/string/memchr.S b/lib/libc/i386/string/memchr.S
index 03828db..3bd4d9c 100644
--- a/lib/libc/i386/string/memchr.S
+++ b/lib/libc/i386/string/memchr.S
@@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$");
/*
* memchr (b, c, len)
- * locates the first occurance of c in string b.
+ * locates the first occurrence of c in string b.
*
* Written by:
* J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc.
diff --git a/lib/libc/i386/string/strchr.S b/lib/libc/i386/string/strchr.S
index 57fc6dd..f57c2cd 100644
--- a/lib/libc/i386/string/strchr.S
+++ b/lib/libc/i386/string/strchr.S
@@ -33,11 +33,11 @@ __FBSDID("$FreeBSD$");
/*
* strchr(s, c)
- * return a pointer to the first occurance of the character c in
+ * return a pointer to the first occurrence of the character c in
* string s, or NULL if c does not occur in the string.
*
* %edx - pointer iterating through string
- * %eax - pointer to first occurance of 'c'
+ * %eax - pointer to first occurrence of 'c'
* %cl - character we're comparing against
* %bl - character at %edx
*
diff --git a/lib/libc/i386/string/strrchr.S b/lib/libc/i386/string/strrchr.S
index 29942c4..5ec5287 100644
--- a/lib/libc/i386/string/strrchr.S
+++ b/lib/libc/i386/string/strrchr.S
@@ -33,11 +33,11 @@ __FBSDID("$FreeBSD$");
/*
* strrchr(s, c)
- * return a pointer to the last occurance of the character c in
+ * return a pointer to the last occurrence of the character c in
* string s, or NULL if c does not occur in the string.
*
* %edx - pointer iterating through string
- * %eax - pointer to last occurance of 'c'
+ * %eax - pointer to last occurrence of 'c'
* %cl - character we're comparing against
* %bl - character at %edx
*
diff --git a/lib/libc/stdlib/realpath.c b/lib/libc/stdlib/realpath.c
index 8fd5457..a2a9329 100644
--- a/lib/libc/stdlib/realpath.c
+++ b/lib/libc/stdlib/realpath.c
@@ -139,7 +139,7 @@ realpath(const char * __restrict path, char * __restrict resolved)
* Only the trailing slashes are not covered
* by other checks in the loop, but we verify
* the prefix for any (rare) "//" or "/\0"
- * occurence to not implement lookahead.
+ * occurrence to not implement lookahead.
*/
if (lstat(resolved, &sb) != 0) {
if (m)
diff --git a/lib/libz/zlib.h b/lib/libz/zlib.h
index 3edf3ac..7e19bc0 100644
--- a/lib/libz/zlib.h
+++ b/lib/libz/zlib.h
@@ -846,7 +846,7 @@ ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm));
available input is skipped. No output is provided.
inflateSync searches for a 00 00 FF FF pattern in the compressed data.
- All full flush points have this pattern, but not all occurences of this
+ All full flush points have this pattern, but not all occurrences of this
pattern are full flush points.
inflateSync returns Z_OK if a possible full flush point has been found,
OpenPOWER on IntegriCloud