diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2016-09-01 09:48:21 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2016-09-01 09:48:21 +0000 |
commit | d39871904bdef561828d4c26b5e9f4901132f935 (patch) | |
tree | b8eee19ad49031a9e2d519053a3ca8ec7047a993 /usr.bin | |
parent | af5e88472b573e1456f44a0e580c0ad66da9dbd4 (diff) |
keep the code that endian swaps, but remove the explanation that it's
for converting between freebsd and sunos.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/locate/locate/util.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/locate/locate/util.c b/usr.bin/locate/locate/util.c index 2c709e01e4e..df80134d7a4 100644 --- a/usr.bin/locate/locate/util.c +++ b/usr.bin/locate/locate/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.13 2015/01/16 06:40:09 deraadt Exp $ +/* $OpenBSD: util.c,v 1.14 2016/09/01 09:48:20 tedu Exp $ * * Copyright (c) 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin. * Copyright (c) 1989, 1993 @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: util.c,v 1.13 2015/01/16 06:40:09 deraadt Exp $ + * $Id: util.c,v 1.14 2016/09/01 09:48:20 tedu Exp $ */ @@ -220,11 +220,9 @@ tolower_word(word) /* * Read integer from mmap pointer. * Essential a simple ``return *(int *)p'' but avoid sigbus - * for integer alignment (SunOS 4.x, 5.x). + * for integer alignment. * * 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). */ int |