summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/locate')
-rw-r--r--usr.bin/locate/locate/locate.c2
-rw-r--r--usr.bin/locate/locate/util.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/locate/locate/locate.c b/usr.bin/locate/locate/locate.c
index 67a97da..b0faefb 100644
--- a/usr.bin/locate/locate/locate.c
+++ b/usr.bin/locate/locate/locate.c
@@ -188,7 +188,7 @@ main(argc, argv)
/* no (valid) database as argument */
if (dbv == NULL || *dbv == NULL) {
- /* try to read database from enviroment */
+ /* try to read database from environment */
if ((path_fcodes = getenv("LOCATE_PATH")) == NULL ||
*path_fcodes == '\0')
/* use default database */
diff --git a/usr.bin/locate/locate/util.c b/usr.bin/locate/locate/util.c
index 9cd02b0..7b9fe49 100644
--- a/usr.bin/locate/locate/util.c
+++ b/usr.bin/locate/locate/util.c
@@ -218,11 +218,11 @@ tolower_word(word)
/*
- * Read integer from mmap pointer.
- * Essential a simple ``return *(int *)p'' but avoid sigbus
+ * Read integer from mmap pointer.
+ * Essential a simple ``return *(int *)p'' but avoid sigbus
* for integer alignment (SunOS 4.x, 5.x).
*
- * Convert network byte order to host byte order if neccessary.
+ * Convert network byte order to host byte order if necessary.
* So we can read on FreeBSD/i386 (little endian) a locate database
* which was built on SunOS/sparc (big endian).
*/
@@ -254,7 +254,7 @@ getwm(p)
/*
* Read integer from stream.
*
- * Convert network byte order to host byte order if neccessary.
+ * Convert network byte order to host byte order if necessary.
* So we can read on FreeBSD/i386 (little endian) a locate database
* which was built on SunOS/sparc (big endian).
*/
OpenPOWER on IntegriCloud