From 9953595f973c461c2729e5a7cde9380a3d3d2c9a Mon Sep 17 00:00:00 2001 From: uqs Date: Fri, 30 Dec 2011 11:02:40 +0000 Subject: Spelling fixes for usr.bin/ --- usr.bin/locate/locate/locate.c | 2 +- usr.bin/locate/locate/util.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.bin/locate') 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). */ -- cgit v1.1